Spaces:
Runtime error
Runtime error
fixed a mistake
Browse files
app.py
CHANGED
@@ -5,6 +5,10 @@ import gradio as gr
|
|
5 |
import os
|
6 |
import zipfile
|
7 |
|
|
|
|
|
|
|
|
|
8 |
if not os.path.exists("dorna-diabetes-finetuned"):
|
9 |
with zipfile.ZipFile("dorna-diabetes-finetuned.zip", "r") as zip_ref:
|
10 |
zip_ref.extractall(".")
|
|
|
5 |
import os
|
6 |
import zipfile
|
7 |
|
8 |
+
if os.path.exists("dorna-diabetes-finetuned-20250514T183411Z-1-001.zip") and not os.path.exists("dorna-diabetes-finetuned.zip"):
|
9 |
+
os.rename("wrong_name.zip", "dorna-diabetes-finetuned.zip")
|
10 |
+
print("✅ اسم فایل تغییر کرد.")
|
11 |
+
|
12 |
if not os.path.exists("dorna-diabetes-finetuned"):
|
13 |
with zipfile.ZipFile("dorna-diabetes-finetuned.zip", "r") as zip_ref:
|
14 |
zip_ref.extractall(".")
|