Adityadn commited on
Commit
6458b1f
·
verified ·
1 Parent(s): cc578cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -49,8 +49,8 @@ def process():
49
  python_script = "entry_with_update.py"
50
 
51
  # Argument yang ingin Anda tambahkan
52
- additional_arguments = ["--disable-xformers", "--pytorch-deterministic", "--disable-ipex-hijack", "--disable-header-check", "--disable-async-cuda-allocation", "--disable-attention-upcast", "--always-offload-from-vram", "--all-in-fp32", "--always-no-vram"]
53
- # additional_arguments = ["--always-cpu"]
54
 
55
  # Gabungkan semua argumen
56
  PIP = ["pip", "install", "torch_directml"]
@@ -64,6 +64,9 @@ def process():
64
  subprocess.run(command)# Menjalankan file batch
65
  # subprocess.run([batch_file_path], shell=True)
66
 
 
 
 
67
  launch = "process"
68
 
69
  if launch == "process":
@@ -75,4 +78,5 @@ elif launch == "test":
75
  print("Loading..")
76
 
77
  else:
78
- print("ERROR!")
 
 
49
  python_script = "entry_with_update.py"
50
 
51
  # Argument yang ingin Anda tambahkan
52
+ # additional_arguments = ["--disable-xformers", "--pytorch-deterministic", "--disable-ipex-hijack", "--disable-header-check", "--disable-async-cuda-allocation", "--disable-attention-upcast", "--always-offload-from-vram", "--all-in-fp32", "--always-no-vram"]
53
+ additional_arguments = ["--always-cpu"]
54
 
55
  # Gabungkan semua argumen
56
  PIP = ["pip", "install", "torch_directml"]
 
64
  subprocess.run(command)# Menjalankan file batch
65
  # subprocess.run([batch_file_path], shell=True)
66
 
67
+ process()
68
+
69
+ """
70
  launch = "process"
71
 
72
  if launch == "process":
 
78
  print("Loading..")
79
 
80
  else:
81
+ print("ERROR!")
82
+ """