Skip to content

Commit

Permalink
dockerfix
Browse files Browse the repository at this point in the history
  • Loading branch information
AstraBert committed Apr 5, 2024
1 parent 5a11aab commit 5c97eb6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
11 changes: 2 additions & 9 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,9 @@ ARG version="v0.1.0"
# Echo version
RUN echo "Started everything-rag ${version}"

# Set default model and task
ENV model="google/flan-t5-base"

ENV task="text2text-generation"

# Run script to install and build the model for the first time
RUN python3 utils.py -m ${model} -t ${task}

# Expose the port that the application will run on
EXPOSE 7860

# Set the entrypoint with a default command and allow the user to override it
ENTRYPOINT ["python3", "chat.py", "-m", "${model}", "-t", "${task}"]
ENTRYPOINT ["python3", "chat.py"]

Binary file added docker/__pycache__/utils.cpython-310.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion docker/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ def bot(history):
gr.ClearButton(chatbot)
demo.queue()
if __name__ == "__main__":
demo.launch()
demo.launch(server_name="0.0.0.0", share=False)


1 change: 0 additions & 1 deletion docker/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ pypdf==3.17.4
sentence_transformers==2.2.2
chromadb==0.4.22
gradio
torch
transformers
trl
peft

0 comments on commit 5c97eb6

Please sign in to comment.