Adityadn commited on
Commit
f4415f6
·
verified ·
1 Parent(s): 7f6297b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -48,14 +48,11 @@ def process():
48
  else:
49
  print(f"Gradio is already at version {desired_version}")
50
 
51
- # Gantilah "app.py" dengan nama berkas aplikasi Python Anda
52
- # pip_script = "install -r requirements.txt"
53
- # batch_file_path = "./.run.bat"
54
  python_script = "entry_with_update.py"
55
 
56
  # Argument yang ingin Anda tambahkan
57
- # additional_arguments = ["--in-browser", "--all-in-fp32", "--directml", "--debug-mode", "--attention-split", "--multi-user", "--always-cpu", "--is-windows-embedded-python"]
58
- additional_arguments = ["--always-cpu"]
59
 
60
  # Gabungkan semua argumen
61
  PIP = ["pip", "install", "-r", "requirements.txt"]
@@ -69,4 +66,5 @@ def process():
69
  print("Running..)
70
  # subprocess.run([batch_file_path], shell=True)
71
 
72
- process()
 
 
48
  else:
49
  print(f"Gradio is already at version {desired_version}")
50
 
 
 
 
51
  python_script = "entry_with_update.py"
52
 
53
  # Argument yang ingin Anda tambahkan
54
+ additional_arguments = ["--in-browser", "--all-in-fp32", "--directml", "--debug-mode", "--multi-user", "--always-cpu", "--is-windows-embedded-python"]
55
+ # additional_arguments = ["--always-cpu"]
56
 
57
  # Gabungkan semua argumen
58
  PIP = ["pip", "install", "-r", "requirements.txt"]
 
66
  print("Running..)
67
  # subprocess.run([batch_file_path], shell=True)
68
 
69
+ launch = "process"
70
+ launch()