Spaces:
Runtime error
Runtime error
ademarteau commited on
Commit ·
6d9b0d9
1
Parent(s): 56146fe
fix: let Gradio auto-select port locally, fix via env vars only
Browse files- Dockerfile +1 -1
- app.py +1 -1
Dockerfile
CHANGED
|
@@ -16,7 +16,7 @@ COPY client/ ./client/
|
|
| 16 |
|
| 17 |
RUN useradd -m user
|
| 18 |
USER user
|
| 19 |
-
ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH GRADIO_SERVER_NAME=0.0.0.0
|
| 20 |
|
| 21 |
EXPOSE 7860
|
| 22 |
|
|
|
|
| 16 |
|
| 17 |
RUN useradd -m user
|
| 18 |
USER user
|
| 19 |
+
ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH GRADIO_SERVER_NAME=0.0.0.0 GRADIO_SERVER_PORT=7860
|
| 20 |
|
| 21 |
EXPOSE 7860
|
| 22 |
|
app.py
CHANGED
|
@@ -527,4 +527,4 @@ with gr.Blocks(title="Inventory Simulation") as demo:
|
|
| 527 |
outputs=[llm_chart, llm_metrics, llm_log],
|
| 528 |
)
|
| 529 |
|
| 530 |
-
demo.launch(server_name=os.environ.get("GRADIO_SERVER_NAME", "127.0.0.1")
|
|
|
|
| 527 |
outputs=[llm_chart, llm_metrics, llm_log],
|
| 528 |
)
|
| 529 |
|
| 530 |
+
demo.launch(server_name=os.environ.get("GRADIO_SERVER_NAME", "127.0.0.1"))
|