Update app.py
Browse files
app.py
CHANGED
@@ -27,6 +27,16 @@ print("[6/7] Importing transformers...", end=" ", flush=True)
|
|
27 |
from transformers import pipeline
|
28 |
print("done")
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
# ページごとの表示数
|
31 |
PAGE_SIZE = 20
|
32 |
|
|
|
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)
|
33 |
+
zip_file_path = 'wolf_2m.zip'
|
34 |
+
temp_folder = 'temp'
|
35 |
+
extract_zip_to_temp(zip_file_path, temp_folder)
|
36 |
+
|
37 |
+
|
38 |
+
|
39 |
+
|
40 |
# ページごとの表示数
|
41 |
PAGE_SIZE = 20
|
42 |
|