Xu Ma commited on
Commit
1dce2eb
1 Parent(s): 5e1b97d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -22
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import argparse
2
  import csv
3
  import sys
@@ -28,13 +30,13 @@ def run_cmd(command):
28
  print("Process interrupted")
29
  sys.exit(1)
30
 
31
- run_cmd("gcc --version")
32
- run_cmd("pwd")
33
- run_cmd("ls")
34
- run_cmd("git submodule update --init --recursive")
35
- run_cmd("python setup.py install --user")
36
- run_cmd("pip list")
37
- print("Sccuessfuly import diffvg ")
38
  # run_cmd("pwd")
39
  # run_cmd("ls")
40
  # run_cmd("git submodule update --init --recursive")
@@ -219,21 +221,21 @@ def run_live(img, experiment_id):
219
  # return det_img, det_json
220
 
221
 
222
- def run_cmd(command):
223
- try:
224
- print(command)
225
- call(command, shell=True)
226
- except KeyboardInterrupt:
227
- print("Process interrupted")
228
- sys.exit(1)
229
-
230
- run_cmd("gcc --version")
231
- run_cmd("pwd")
232
- run_cmd("ls")
233
- run_cmd("git submodule update --init --recursive")
234
- run_cmd("python setup.py install --user")
235
- run_cmd("ls")
236
- run_cmd("python main.py --config config/base.yaml --experiment experiment_5x1 --signature smile --target figures/smile.png --log_dir log/")
237
 
238
 
239
 
 
1
+ import os
2
+ os.system('pip install -e .')
3
  import argparse
4
  import csv
5
  import sys
 
30
  print("Process interrupted")
31
  sys.exit(1)
32
 
33
+ # run_cmd("gcc --version")
34
+ # run_cmd("pwd")
35
+ # run_cmd("ls")
36
+ # run_cmd("git submodule update --init --recursive")
37
+ # run_cmd("python setup.py install --user")
38
+ # run_cmd("pip list")
39
+ # print("Sccuessfuly import diffvg ")
40
  # run_cmd("pwd")
41
  # run_cmd("ls")
42
  # run_cmd("git submodule update --init --recursive")
 
221
  # return det_img, det_json
222
 
223
 
224
+ # def run_cmd(command):
225
+ # try:
226
+ # print(command)
227
+ # call(command, shell=True)
228
+ # except KeyboardInterrupt:
229
+ # print("Process interrupted")
230
+ # sys.exit(1)
231
+ #
232
+ # run_cmd("gcc --version")
233
+ # run_cmd("pwd")
234
+ # run_cmd("ls")
235
+ # run_cmd("git submodule update --init --recursive")
236
+ # run_cmd("python setup.py install --user")
237
+ # run_cmd("ls")
238
+ # run_cmd("python main.py --config config/base.yaml --experiment experiment_5x1 --signature smile --target figures/smile.png --log_dir log/")
239
 
240
 
241