Spaces:
Runtime error
Runtime error
Benjamin Bossan
commited on
Commit
•
1ec7d38
1
Parent(s):
f397951
Further debugging
Browse filesTry moving GRADIO_SERVER_NAME inside Dockerfile.
- Dockerfile +1 -0
- README.md +1 -1
Dockerfile
CHANGED
@@ -32,4 +32,5 @@ COPY --chown=user "demo.py" .
|
|
32 |
# CMD ["./start.sh"]
|
33 |
|
34 |
EXPOSE 7860
|
|
|
35 |
CMD ["python3", "./demo.py"]
|
|
|
32 |
# CMD ["./start.sh"]
|
33 |
|
34 |
EXPOSE 7860
|
35 |
+
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
36 |
CMD ["python3", "./demo.py"]
|
README.md
CHANGED
@@ -73,7 +73,7 @@ docker build -t gistillery:latest .
|
|
73 |
Next run the container:
|
74 |
|
75 |
```sh
|
76 |
-
docker run -p 7860:7860 -p 8080:8080 -
|
77 |
```
|
78 |
|
79 |
Note that the Hugging Face cache folder is mounted as a docker volume to make use of potentially available local model cache instead of downloading the transformers models each time the container is started. To prevent that, remove the `-v ...` parameter. The database used for storing the results is ephemeral and will be deleted when the docker container is stopped. The backend server is also exposed directly via port 8080 to enable DB backups (see below).
|
|
|
73 |
Next run the container:
|
74 |
|
75 |
```sh
|
76 |
+
docker run -p 7860:7860 -p 8080:8080 -v $HOME/.cache/huggingface/hub:/home/user/.cache/huggingface/hub gistillery:latest
|
77 |
```
|
78 |
|
79 |
Note that the Hugging Face cache folder is mounted as a docker volume to make use of potentially available local model cache instead of downloading the transformers models each time the container is started. To prevent that, remove the `-v ...` parameter. The database used for storing the results is ephemeral and will be deleted when the docker container is stopped. The backend server is also exposed directly via port 8080 to enable DB backups (see below).
|