Spaces:
Runtime error
Runtime error
File size: 713 Bytes
af4d501 5f3b20a af4d501 5f3b20a af4d501 e0c6994 9217d44 df9bb6f 5f3b20a 9217d44 5f3b20a af4d501 5f3b20a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
FROM python:3.10
WORKDIR /app
COPY . /app
# /tmp ๋๋ ํ ๋ฆฌ ์์ฑ ๋ฐ ๊ถํ ๋ถ์ฌ
RUN mkdir -p /tmp && chmod 1777 /tmp
RUN chmod -Rc 775 /app
#RUN pip install --force-reinstall streamlit langchain langchain-community langchain-core langchain-huggingface sentence-transformers pypdf gradio pdf2image PyPDF2 pdfplumber faiss-cpu transformers accelerate torch peft bitsandbytes tqdm python-docx olefile uvicorn fastapi openai pytesseract pymupdf4llm -U
# TMPDIR ํ๊ฒฝ๋ณ์๋ฅผ ์ง์ ํ์ฌ pip install ์คํ
RUN TMPDIR=/tmp pip install --upgrade pip && TMPDIR=/tmp pip install -r requirements.txt -U --force-reinstall
EXPOSE 8500
CMD ["uvicorn", "rag_server:app", "--host", "0.0.0.0", "--port", "8500"]
|