Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,8 @@ print("done")
|
|
26 |
print("[6/7] Importing transformers...", end=" ", flush=True)
|
27 |
from transformers import pipeline
|
28 |
print("done")
|
29 |
-
|
|
|
30 |
def extract_zip_to_temp(zip_file_path, temp_folder):
|
31 |
with zipfile.ZipFile(zip_file_path, 'r') as zip_ref:
|
32 |
zip_ref.extractall(temp_folder)
|
@@ -35,7 +36,7 @@ temp_folder = 'temp'
|
|
35 |
|
36 |
# テキストファイルの存在を確認
|
37 |
if os.path.isfile("sample.txt"):
|
38 |
-
|
39 |
else:
|
40 |
extract_zip_to_temp(zip_file_path, temp_folder)
|
41 |
#extract_zip_to_temp(zip_file_path, temp_folder)
|
|
|
26 |
print("[6/7] Importing transformers...", end=" ", flush=True)
|
27 |
from transformers import pipeline
|
28 |
print("done")
|
29 |
+
def do_nothing():
|
30 |
+
|
31 |
def extract_zip_to_temp(zip_file_path, temp_folder):
|
32 |
with zipfile.ZipFile(zip_file_path, 'r') as zip_ref:
|
33 |
zip_ref.extractall(temp_folder)
|
|
|
36 |
|
37 |
# テキストファイルの存在を確認
|
38 |
if os.path.isfile("sample.txt"):
|
39 |
+
do_nothing()
|
40 |
else:
|
41 |
extract_zip_to_temp(zip_file_path, temp_folder)
|
42 |
#extract_zip_to_temp(zip_file_path, temp_folder)
|