Adityadn commited on
Commit
bd29e79
·
verified ·
1 Parent(s): a2d298f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -2,11 +2,11 @@ import subprocess
2
 
3
  # Gantilah "app.py" dengan nama berkas aplikasi Python Anda
4
  pip_script = "install -r requirements.txt"
5
- batch_file_path = "./.run.bat"
6
  python_script = "entry_with_update.py"
7
 
8
  # Argument yang ingin Anda tambahkan
9
- additional_arguments = ["--always-cpu"]
10
 
11
  # Gabungkan semua argumen
12
  PIP = ["pip", pip_script]
@@ -14,5 +14,5 @@ command = ["python", python_script] + additional_arguments
14
 
15
  # Jalankan skrip menggunakan subprocess
16
  subprocess.run(PIP)
17
- # subprocess.run(command)# Menjalankan file batch
18
- subprocess.run([batch_file_path], shell=True)
 
2
 
3
  # Gantilah "app.py" dengan nama berkas aplikasi Python Anda
4
  pip_script = "install -r requirements.txt"
5
+ # batch_file_path = "./.run.bat"
6
  python_script = "entry_with_update.py"
7
 
8
  # Argument yang ingin Anda tambahkan
9
+ additional_arguments = ["--listen", "--port", "--in-browser", "--vae-in-cpu", "--attention-split", "--multi-user", "--always-cpu", "--share"]
10
 
11
  # Gabungkan semua argumen
12
  PIP = ["pip", pip_script]
 
14
 
15
  # Jalankan skrip menggunakan subprocess
16
  subprocess.run(PIP)
17
+ subprocess.run(command)# Menjalankan file batch
18
+ # subprocess.run([batch_file_path], shell=True)