Spaces:
Runtime error
Runtime error
FROM python:3.10 | |
RUN useradd -m -u 1000 user | |
USER user | |
WORKDIR /LLM-As-Chatbot | |
RUN git clone https://github.com/deep-diver/LLM-As-Chatbot.git . | |
RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
COPY --chown=user health_check_200.py health_check_200.py | |
COPY --chown=user entry_script.sh entry_script.sh | |
RUN chmod +x ./entry_script.sh | |
ENV HF_HOME=./ | |
ENV LLMCHAT_APP_MODE=DISCORD | |
ENV DISCORD_BOT_MAX_WORKERS=1 | |
ENV DISCORD_BOT_LOAD_MODE=8BIT | |
# Full list of supported models can be found | |
# at https://github.com/deep-diver/LLM-As-Chatbot/blob/main/model_cards.json | |
ENV DISCORD_BOT_MODEL_NAME=baize-7b | |
# Also, DISCORD_BOT_TOKEN should be set as HF Space Secret | |
CMD ./entry_script.sh |