Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ import spaces
|
|
| 34 |
DEFAULT_RENT_TIME = 300
|
| 35 |
|
| 36 |
if os.getenv('SYSTEM') == 'spaces':
|
| 37 |
-
|
| 38 |
subprocess.run(["bash", "install.sh"])
|
| 39 |
|
| 40 |
os.environ['HOME'] = '/home/user/app'
|
|
@@ -582,4 +582,4 @@ if sys.platform == 'win32':
|
|
| 582 |
demo.queue().launch(
|
| 583 |
share=True,
|
| 584 |
debug=True
|
| 585 |
-
)
|
|
|
|
| 34 |
DEFAULT_RENT_TIME = 300
|
| 35 |
|
| 36 |
if os.getenv('SYSTEM') == 'spaces':
|
| 37 |
+
subprocess.run(["bash", "download_weights.sh"])
|
| 38 |
subprocess.run(["bash", "install.sh"])
|
| 39 |
|
| 40 |
os.environ['HOME'] = '/home/user/app'
|
|
|
|
| 582 |
demo.queue().launch(
|
| 583 |
share=True,
|
| 584 |
debug=True
|
| 585 |
+
)
|