Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,17 @@
|
|
| 1 |
# This file is needed for Hugging Face Spaces to recognize the app
|
| 2 |
# It simply imports and runs the Gradio app from app_huggingface.py
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
from app_huggingface import create_interface
|
| 5 |
|
| 6 |
# Create the Gradio interface
|
|
|
|
| 1 |
# This file is needed for Hugging Face Spaces to recognize the app
|
| 2 |
# It simply imports and runs the Gradio app from app_huggingface.py
|
| 3 |
|
| 4 |
+
import os
|
| 5 |
+
import sys
|
| 6 |
+
|
| 7 |
+
# Run setup to ensure all files exist
|
| 8 |
+
try:
|
| 9 |
+
import huggingface_setup
|
| 10 |
+
huggingface_setup.ensure_files_exist()
|
| 11 |
+
except Exception as e:
|
| 12 |
+
print(f"Setup error: {e}")
|
| 13 |
+
|
| 14 |
+
# Import and run the Gradio app
|
| 15 |
from app_huggingface import create_interface
|
| 16 |
|
| 17 |
# Create the Gradio interface
|