Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -49,16 +49,16 @@ def process():
|
|
49 |
python_script = "entry_with_update.py"
|
50 |
|
51 |
# Argument yang ingin Anda tambahkan
|
52 |
-
additional_arguments = ["--in-browser", "--
|
53 |
# additional_arguments = ["--always-cpu"]
|
54 |
|
55 |
# Gabungkan semua argumen
|
56 |
PIP = ["pip", "install", "-r", "requirements.txt"]
|
57 |
-
command = ["python", python_script]
|
58 |
|
59 |
# Jalankan skrip menggunakan subprocess
|
60 |
-
subprocess.run(PIP)
|
61 |
-
print("Installing..")
|
62 |
|
63 |
subprocess.run(command)# Menjalankan file batch
|
64 |
print("Running..")
|
|
|
49 |
python_script = "entry_with_update.py"
|
50 |
|
51 |
# Argument yang ingin Anda tambahkan
|
52 |
+
additional_arguments = ["--in-browser", "--directml", "--debug-mode", "--multi-user", "--always-cpu"]
|
53 |
# additional_arguments = ["--always-cpu"]
|
54 |
|
55 |
# Gabungkan semua argumen
|
56 |
PIP = ["pip", "install", "-r", "requirements.txt"]
|
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..")
|