Spaces:
Runtime error
Runtime error
updates
Browse files
start.py
CHANGED
@@ -56,6 +56,20 @@ def start():
|
|
56 |
for command, cwd in commands:
|
57 |
run_command(command, cwd=cwd)
|
58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
# Download the dataset
|
60 |
download_dataset()
|
61 |
|
|
|
56 |
for command, cwd in commands:
|
57 |
run_command(command, cwd=cwd)
|
58 |
|
59 |
+
# check if mech exist as a library
|
60 |
+
try:
|
61 |
+
import mech
|
62 |
+
except ImportError:
|
63 |
+
print("Mech is not installed as a library. Please install it.")
|
64 |
+
return
|
65 |
+
|
66 |
+
# check if benchmark exist as a library
|
67 |
+
try:
|
68 |
+
import benchmark
|
69 |
+
except ImportError:
|
70 |
+
print("Benchmark is not installed as a library. Please install it.")
|
71 |
+
return
|
72 |
+
|
73 |
# Download the dataset
|
74 |
download_dataset()
|
75 |
|