Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
4de6d3f
1
Parent(s):
27d64c8
Set correct env variables for binding to HF
Browse files- gui/Dockerfile +5 -0
gui/Dockerfile
CHANGED
@@ -42,5 +42,10 @@ WORKDIR /home/user/app
|
|
42 |
COPY --chown=user . $HOME/app
|
43 |
|
44 |
EXPOSE 7860
|
|
|
|
|
|
|
|
|
|
|
45 |
|
46 |
CMD ["/bin/bash", "-l", "-c", "/home/user/.venv/bin/python /home/user/app/app.py"]
|
|
|
42 |
COPY --chown=user . $HOME/app
|
43 |
|
44 |
EXPOSE 7860
|
45 |
+
ENV GRADIO_ALLOW_FLAGGING=never \
|
46 |
+
GRADIO_NUM_PORTS=1 \
|
47 |
+
GRADIO_SERVER_NAME=0.0.0.0 \
|
48 |
+
GRADIO_THEME=huggingface \
|
49 |
+
SYSTEM=spaces
|
50 |
|
51 |
CMD ["/bin/bash", "-l", "-c", "/home/user/.venv/bin/python /home/user/app/app.py"]
|