Spaces:
Runtime error
Runtime error
Xu Ma
commited on
Commit
·
2ee9471
1
Parent(s):
0c5e8ee
Update app.py
Browse files
app.py
CHANGED
@@ -19,6 +19,24 @@ import errno
|
|
19 |
from tqdm import tqdm
|
20 |
import yaml
|
21 |
from easydict import EasyDict as edict
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
from main import main_func
|
23 |
|
24 |
def parse_args():
|
|
|
19 |
from tqdm import tqdm
|
20 |
import yaml
|
21 |
from easydict import EasyDict as edict
|
22 |
+
|
23 |
+
def run_cmd(command):
|
24 |
+
try:
|
25 |
+
print(command)
|
26 |
+
call(command, shell=True)
|
27 |
+
except KeyboardInterrupt:
|
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("ls")
|
37 |
+
run_cmd("python main.py --config config/base.yaml --experiment experiment_5x1 --signature smile --target figures/smile.png --log_dir log/")
|
38 |
+
|
39 |
+
|
40 |
from main import main_func
|
41 |
|
42 |
def parse_args():
|