MadhuChitikela commited on
Commit ·
654caaf
1
Parent(s): fa84ace
fix(huggingface): pin starlette<0.39.0 and bind launch to 0.0.0.0:7860
Browse files- app.py +5 -1
- requirements.txt +2 -0
app.py
CHANGED
|
@@ -1,4 +1,8 @@
|
|
| 1 |
# HuggingFace Spaces entry point
|
|
|
|
| 2 |
from gradio_app import app
|
| 3 |
|
| 4 |
-
app.launch(
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# HuggingFace Spaces entry point
|
| 2 |
+
import os
|
| 3 |
from gradio_app import app
|
| 4 |
|
| 5 |
+
app.launch(
|
| 6 |
+
server_name="0.0.0.0",
|
| 7 |
+
server_port=int(os.environ.get("PORT", 7860))
|
| 8 |
+
)
|
requirements.txt
CHANGED
|
@@ -1,4 +1,6 @@
|
|
| 1 |
gradio==4.44.0
|
|
|
|
|
|
|
| 2 |
huggingface_hub==0.25.2
|
| 3 |
langchain==0.2.16
|
| 4 |
langchain-groq==0.1.9
|
|
|
|
| 1 |
gradio==4.44.0
|
| 2 |
+
starlette<0.39.0
|
| 3 |
+
fastapi<=0.112.4
|
| 4 |
huggingface_hub==0.25.2
|
| 5 |
langchain==0.2.16
|
| 6 |
langchain-groq==0.1.9
|