Spaces:
Sleeping
Sleeping
zip 파일 해제
Browse files
app.py
CHANGED
@@ -1,6 +1,22 @@
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import InferenceClient
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
"""
|
5 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
6 |
"""
|
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import InferenceClient
|
3 |
|
4 |
+
import gradio as gr
|
5 |
+
from huggingface_hub import InferenceClient
|
6 |
+
import os
|
7 |
+
import zipfile # 추가
|
8 |
+
|
9 |
+
# zip 파일 자동 해제 코드
|
10 |
+
zip_path = "solo_leveling_faiss_ko.zip"
|
11 |
+
extract_dir = "solo_leveling_faiss_ko"
|
12 |
+
|
13 |
+
if os.path.exists(zip_path) and not os.path.exists(extract_dir):
|
14 |
+
with zipfile.ZipFile(zip_path, 'r') as zip_ref:
|
15 |
+
zip_ref.extractall(extract_dir)
|
16 |
+
print(f"[INFO] 압축 해제 완료 → {extract_dir}")
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
"""
|
21 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
22 |
"""
|