Adityadn commited on
Commit
b919f4f
·
verified ·
1 Parent(s): b1d2555

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -53,12 +53,12 @@ def process():
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..")
 
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..")