File size: 866 Bytes
cc9f92c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51b92f8
cc9f92c
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Use a Python base image
FROM  nvidia/cuda:12.4.1-runtime-ubuntu22.04

# Set the working directory
WORKDIR /DocQA

# Copy the requirements.txt file
COPY ./requirements.txt ./

# Install dependencies
RUN apt-get update && apt-get install -y \
    git \
    python3.10 \
    python3-pip \
    && apt-get clean
RUN apt-get install poppler-utils -y
RUN pip install --no-cache-dir -r requirements.txt 
RUN pip3 install torch --index-url https://download.pytorch.org/whl/cu121

# Copy the rest of the application codeDocQA
COPY images ./images
COPY app.py ./
COPY ./classification.py ./
COPY donut_inference.py ./
COPY non_form_llama_parse.py ./
COPY RAG.py ./
COPY best_resnet152_model.h5 ./
COPY Model ./

# Expose the port the app runs on
# EXPOSE 7860
EXPOSE 8501

# Start the application
# CMD ["streamlit", "run", "app.py"]
ENTRYPOINT ["streamlit", "run","app.py"]