Spaces:
Running
on
Zero
Running
on
Zero
infinity1096
commited on
Commit
·
b7008ff
1
Parent(s):
74be47f
import hack
Browse files
app.py
CHANGED
|
@@ -15,14 +15,14 @@ import importlib
|
|
| 15 |
try:
|
| 16 |
import uniception
|
| 17 |
import uniflowmatch
|
| 18 |
-
except
|
| 19 |
try:
|
| 20 |
subprocess.check_call(["/bin/bash", "/home/user/app/install_package.sh"])
|
| 21 |
# After successful install, reload sys.path and import modules
|
| 22 |
importlib.invalidate_caches()
|
| 23 |
uniception = importlib.import_module("uniception")
|
| 24 |
uniflowmatch = importlib.import_module("uniflowmatch")
|
| 25 |
-
except
|
| 26 |
print(f"Script failed with return code {e.returncode}", file=sys.stderr)
|
| 27 |
sys.exit(e.returncode)
|
| 28 |
|
|
|
|
| 15 |
try:
|
| 16 |
import uniception
|
| 17 |
import uniflowmatch
|
| 18 |
+
except:
|
| 19 |
try:
|
| 20 |
subprocess.check_call(["/bin/bash", "/home/user/app/install_package.sh"])
|
| 21 |
# After successful install, reload sys.path and import modules
|
| 22 |
importlib.invalidate_caches()
|
| 23 |
uniception = importlib.import_module("uniception")
|
| 24 |
uniflowmatch = importlib.import_module("uniflowmatch")
|
| 25 |
+
except:
|
| 26 |
print(f"Script failed with return code {e.returncode}", file=sys.stderr)
|
| 27 |
sys.exit(e.returncode)
|
| 28 |
|