Skip to content

Commit

Permalink
fix docker
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekkrthakur committed Sep 29, 2023
1 parent 63c356d commit b7801f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,5 @@ COPY --chown=1000:1000 . /app/
RUN pip install -e .
RUN pip install git+https://github.com/huggingface/peft.git
RUN pip install git+https://github.com/huggingface/trl.git
RUN pip install git+https://github.com/huggingface/transformers.git
RUN pip install flash-attn
2 changes: 1 addition & 1 deletion src/autotrain/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def _create_space(self):
repo_type="space",
)

_dockerfile = "FROM huggingface/autotrain-advanced:latest\nCMD autotrain setup\nCMD autotrain api --port 7860 --host 0.0.0.0"
_dockerfile = "FROM huggingface/autotrain-advanced:latest\nCMD autotrain setup && autotrain api --port 7860 --host 0.0.0.0"
_dockerfile = io.BytesIO(_dockerfile.encode())
api.upload_file(
path_or_fileobj=_dockerfile,
Expand Down

0 comments on commit b7801f6

Please sign in to comment.