Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,13 @@ import spaces
|
|
| 7 |
# command = ["python", "setup.py", "build_ext", "--inplace"]
|
| 8 |
command = ["pip", "install", "--no-build-isolation", "-e", "."]
|
| 9 |
# Execute the command
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
css="""
|
| 13 |
div#component-18, div#component-25, div#component-35, div#component-41{
|
|
|
|
| 7 |
# command = ["python", "setup.py", "build_ext", "--inplace"]
|
| 8 |
command = ["pip", "install", "--no-build-isolation", "-e", "."]
|
| 9 |
# Execute the command
|
| 10 |
+
|
| 11 |
+
@spaces.GPU(duration=120)
|
| 12 |
+
def run_install(command):
|
| 13 |
+
result = subprocess.run(command, capture_output=True, text=True)
|
| 14 |
+
return result
|
| 15 |
+
|
| 16 |
+
result = run_install(command)
|
| 17 |
|
| 18 |
css="""
|
| 19 |
div#component-18, div#component-25, div#component-35, div#component-41{
|