Adityadn commited on
Commit
b6a1e5a
·
verified ·
1 Parent(s): 2068390

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import subprocess
2
+
3
+ # Gantilah "app.py" dengan nama berkas aplikasi Python Anda
4
+ python_script = "entry_with_update.py"
5
+
6
+ # Argument yang ingin Anda tambahkan
7
+ additional_arguments = ["--always-cpu", "--attention-split"]
8
+
9
+ # Gabungkan semua argumen
10
+ command = ["python", python_script] + additional_arguments
11
+
12
+ # Jalankan skrip menggunakan subprocess
13
+ subprocess.run(command)