Spaces:
Sleeping
Sleeping
HeTalksInMaths
commited on
Commit
·
91d8497
1
Parent(s):
9d867b4
Fix HuggingFace Spaces deployment: simplify launch config and constrain Gradio version
Browse files- app.py +1 -2
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -691,5 +691,4 @@ with gr.Blocks(title="ToGMAL - Difficulty Analyzer + Chat", css="""
|
|
| 691 |
)
|
| 692 |
|
| 693 |
if __name__ == "__main__":
|
| 694 |
-
|
| 695 |
-
demo.launch(server_name="0.0.0.0", server_port=port)
|
|
|
|
| 691 |
)
|
| 692 |
|
| 693 |
if __name__ == "__main__":
|
| 694 |
+
demo.launch()
|
|
|
requirements.txt
CHANGED
|
@@ -8,5 +8,5 @@ joblib>=1.3
|
|
| 8 |
sentence-transformers>=2.2.0
|
| 9 |
chromadb>=0.4.0
|
| 10 |
datasets>=2.14.0
|
| 11 |
-
gradio>=4.0.0
|
| 12 |
huggingface-hub>=0.19.0
|
|
|
|
| 8 |
sentence-transformers>=2.2.0
|
| 9 |
chromadb>=0.4.0
|
| 10 |
datasets>=2.14.0
|
| 11 |
+
gradio>=4.0.0,<5.0.0
|
| 12 |
huggingface-hub>=0.19.0
|