Spaces:
Sleeping
Sleeping
NicholasGuerrero
commited on
Commit
·
64c31c8
1
Parent(s):
2e7d905
tweak 9
Browse files- Dockerfile +2 -9
Dockerfile
CHANGED
|
@@ -16,22 +16,15 @@ WORKDIR $HOME/app
|
|
| 16 |
COPY --chown=user . $HOME/app
|
| 17 |
|
| 18 |
|
| 19 |
-
|
| 20 |
EXPOSE 7860
|
| 21 |
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
| 22 |
|
| 23 |
-
|
| 24 |
-
# Download a checkpoint
|
| 25 |
-
RUN mkdir content
|
| 26 |
-
# Download the model using the Hugging Face CLI
|
| 27 |
-
|
| 28 |
# Install the Hugging Face CLI tool
|
| 29 |
-
RUN pip install huggingface_hub
|
| 30 |
|
|
|
|
| 31 |
RUN huggingface-cli download NicholasJohn/OpenBioLLM-Llama3-8B-Q5_K_M.gguf --local-dir ./models
|
| 32 |
|
| 33 |
-
RUN ls -l $HOME/app/content
|
| 34 |
-
|
| 35 |
RUN pip install -r requirements.txt
|
| 36 |
|
| 37 |
CMD ["python", "app.py"]
|
|
|
|
| 16 |
COPY --chown=user . $HOME/app
|
| 17 |
|
| 18 |
|
|
|
|
| 19 |
EXPOSE 7860
|
| 20 |
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
# Install the Hugging Face CLI tool
|
| 23 |
+
RUN pip install huggingface_hub==0.23.0
|
| 24 |
|
| 25 |
+
# Download the model using the Hugging Face CLI
|
| 26 |
RUN huggingface-cli download NicholasJohn/OpenBioLLM-Llama3-8B-Q5_K_M.gguf --local-dir ./models
|
| 27 |
|
|
|
|
|
|
|
| 28 |
RUN pip install -r requirements.txt
|
| 29 |
|
| 30 |
CMD ["python", "app.py"]
|