Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,15 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
def respond(
|
| 6 |
message,
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
| 4 |
+
import zipfile
|
| 5 |
+
import os
|
| 6 |
+
|
| 7 |
+
extract_folder = "yukon_texts"
|
| 8 |
+
|
| 9 |
+
if not os.path.exists(extract_folder):
|
| 10 |
+
with zipfile.ZipFile("yukon.zip", 'r') as zip_ref:
|
| 11 |
+
zip_ref.extractall(extract_folder)
|
| 12 |
+
|
| 13 |
|
| 14 |
def respond(
|
| 15 |
message,
|