Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -53,12 +53,12 @@ def process():
|
|
53 |
# additional_arguments = ["--always-cpu"]
|
54 |
|
55 |
# Gabungkan semua argumen
|
56 |
-
PIP = ["pip", "install", "
|
57 |
command = ["python", python_script] + additional_arguments
|
58 |
|
59 |
# Jalankan skrip menggunakan subprocess
|
60 |
-
|
61 |
-
|
62 |
|
63 |
subprocess.run(command)# Menjalankan file batch
|
64 |
print("Running..")
|
|
|
53 |
# additional_arguments = ["--always-cpu"]
|
54 |
|
55 |
# Gabungkan semua argumen
|
56 |
+
PIP = ["pip", "install", "torch_directml"]
|
57 |
command = ["python", python_script] + additional_arguments
|
58 |
|
59 |
# Jalankan skrip menggunakan subprocess
|
60 |
+
subprocess.run(PIP)
|
61 |
+
print("Installing..")
|
62 |
|
63 |
subprocess.run(command)# Menjalankan file batch
|
64 |
print("Running..")
|