Spaces:
Running
Running
Fix Gradio deployment errors
Browse files- app.py +5 -1
- requirements.txt +2 -2
app.py
CHANGED
|
@@ -109,4 +109,8 @@ def create_interface():
|
|
| 109 |
|
| 110 |
if __name__ == "__main__":
|
| 111 |
demo = create_interface()
|
| 112 |
-
demo.launch(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
|
| 110 |
if __name__ == "__main__":
|
| 111 |
demo = create_interface()
|
| 112 |
+
demo.launch(
|
| 113 |
+
share=True,
|
| 114 |
+
server_name="0.0.0.0",
|
| 115 |
+
server_port=7860
|
| 116 |
+
)
|
requirements.txt
CHANGED
|
@@ -7,8 +7,8 @@ datasets>=2.14.0
|
|
| 7 |
huggingface-hub>=0.19.0
|
| 8 |
safetensors>=0.4.0
|
| 9 |
|
| 10 |
-
# Gradio for Hugging Face Spaces -
|
| 11 |
-
gradio==3.50.
|
| 12 |
|
| 13 |
# Backend API
|
| 14 |
fastapi>=0.104.0
|
|
|
|
| 7 |
huggingface-hub>=0.19.0
|
| 8 |
safetensors>=0.4.0
|
| 9 |
|
| 10 |
+
# Gradio for Hugging Face Spaces - pinned to avoid schema errors
|
| 11 |
+
gradio==3.50.2
|
| 12 |
|
| 13 |
# Backend API
|
| 14 |
fastapi>=0.104.0
|