Spaces:
Runtime error
Runtime error
Rename app.py to entry_with_update.py
Browse files
app.py → entry_with_update.py
RENAMED
@@ -6,20 +6,6 @@ root = os.path.dirname(os.path.abspath(__file__))
|
|
6 |
sys.path.append(root)
|
7 |
os.chdir(root)
|
8 |
|
9 |
-
import argparse
|
10 |
-
|
11 |
-
parser = argparse.ArgumentParser(description='Deskripsi skrip Anda')
|
12 |
-
parser.add_argument('--always-cpu', action='store_true', help='Use CPU with argument --always-cpu')
|
13 |
-
parser.add_argument('--attention-split', type=int, default=0, help='--attention-cplit to speed')
|
14 |
-
|
15 |
-
args = parser.parse_args()
|
16 |
-
|
17 |
-
# Gunakan argumen yang Anda tambahkan di sini
|
18 |
-
print("always-cpu:", args.always_cpu)
|
19 |
-
print("attention-split:", args.attention_split)
|
20 |
-
|
21 |
-
# Jalankan logika aplikasi Anda di sini
|
22 |
-
|
23 |
|
24 |
try:
|
25 |
import pygit2
|
|
|
6 |
sys.path.append(root)
|
7 |
os.chdir(root)
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
try:
|
11 |
import pygit2
|