Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,11 +20,11 @@ os.chdir("NBOX")
|
|
| 20 |
# if device == "cuda":
|
| 21 |
# subprocess.run(["python", "install.py", "--onnxruntime", "cuda", "--skip-conda"], check=True)
|
| 22 |
# elif device == "cpu":
|
| 23 |
-
|
| 24 |
|
| 25 |
|
| 26 |
# # Run the ui
|
| 27 |
# if device == "cuda":
|
| 28 |
# subprocess.run(["python", "run.py", "run", "--execution-providers", "cuda"], check=True)
|
| 29 |
# elif device == "cpu":
|
| 30 |
-
subprocess.run(["python", "run.py", "run", "--execution-providers", "cpu", "--skip-download"], check=True)
|
|
|
|
| 20 |
# if device == "cuda":
|
| 21 |
# subprocess.run(["python", "install.py", "--onnxruntime", "cuda", "--skip-conda"], check=True)
|
| 22 |
# elif device == "cpu":
|
| 23 |
+
subprocess.run(["python", "install.py", "--onnxruntime", "default", "--skip-conda"], check=True)
|
| 24 |
|
| 25 |
|
| 26 |
# # Run the ui
|
| 27 |
# if device == "cuda":
|
| 28 |
# subprocess.run(["python", "run.py", "run", "--execution-providers", "cuda"], check=True)
|
| 29 |
# elif device == "cpu":
|
| 30 |
+
subprocess.run(["python", "run.py", "run", "--execution-providers", "cuda cpu", "--skip-download"], check=True)
|