Spaces:
Runtime error
Runtime error
Commit
•
5d006cb
1
Parent(s):
ad18cdd
Update app.py
Browse files
app.py
CHANGED
@@ -18,13 +18,11 @@ gdown.download(id='16PF_b4dURVkBt4OT7E-a-vq-SRxi0uDl', output='lol.pth')
|
|
18 |
gdown.download(id='19rGjfo73P25O_keQv30snfe3IHrK0uV2', output='config.yaml')
|
19 |
|
20 |
gdown.download(id='1qyNV80qmYHx_r4KsG3_8PXQ6ff1a1dov', output='modules.zip')
|
21 |
-
os.system('unzip modules.zip')
|
22 |
|
23 |
gdown.download(id='1UMZ7i8SpfuNw0N2JvVY8euaNx9gu3x6N', output='configs.zip')
|
24 |
-
os.system('unzip configs.zip')
|
25 |
|
26 |
gdown.download(id='1yHD7_4DD_keUwGs2nenAYDaQ2CNEA5IU', output='data.zip')
|
27 |
-
os.system('unzip data.zip')
|
28 |
|
29 |
|
30 |
def get_model(config):
|
@@ -103,4 +101,4 @@ iface = gr.Interface(fn=process_image,
|
|
103 |
# article=article,
|
104 |
# examples=glob.glob('figs/test/*.png')
|
105 |
)
|
106 |
-
iface.launch(debug=
|
|
|
18 |
gdown.download(id='19rGjfo73P25O_keQv30snfe3IHrK0uV2', output='config.yaml')
|
19 |
|
20 |
gdown.download(id='1qyNV80qmYHx_r4KsG3_8PXQ6ff1a1dov', output='modules.zip')
|
|
|
21 |
|
22 |
gdown.download(id='1UMZ7i8SpfuNw0N2JvVY8euaNx9gu3x6N', output='configs.zip')
|
|
|
23 |
|
24 |
gdown.download(id='1yHD7_4DD_keUwGs2nenAYDaQ2CNEA5IU', output='data.zip')
|
25 |
+
os.system('unzip data.zip && unzip configs.zip && unzip modules.zip')
|
26 |
|
27 |
|
28 |
def get_model(config):
|
|
|
101 |
# article=article,
|
102 |
# examples=glob.glob('figs/test/*.png')
|
103 |
)
|
104 |
+
iface.launch(debug=True)
|