jibsn commited on
Commit
f694d9e
·
verified ·
1 Parent(s): c0bd057

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +48 -0
  2. requirements.txt +20 -0
Dockerfile ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python3.11-slim
2
+
3
+ # Install system dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ libopencv-dev \
6
+ build-essential \
7
+ python3-opencv \
8
+ && apt-get clean
9
+
10
+ # Install Python dependencies
11
+ RUN pip install --no-cache-dir \
12
+ -r requirements.txt
13
+ # fastapi \
14
+ # uvicorn \
15
+ # gradio \
16
+ # python-multipart \
17
+ # rdkit \
18
+ # Pillow \
19
+ # numpy \
20
+ # matplotlib \
21
+ # scipy \
22
+ # opencv-python \
23
+ # onnx \
24
+ # onnxruntime \
25
+ # pandas \
26
+ # tqdm \
27
+ # scikit-image \
28
+ # SmilesPE \
29
+ # paddleocr==2.9.1 \
30
+ # paddlepaddle==2.6.2 \
31
+ # torch==2.0.1 \
32
+ # torchvision==0.15.2 \
33
+ -i https://pypi.tuna.tsinghua.edu.cn/simple
34
+
35
+
36
+
37
+ # Set working directory
38
+ WORKDIR /app
39
+
40
+ # Copy application files
41
+ # COPY model.py .
42
+ # COPY app.py .
43
+
44
+ # Expose port for Hugging Face Spaces (7860 is default)
45
+ EXPOSE 7860
46
+
47
+ # Command to run the application
48
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
requirements.txt ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fastapi
2
+ uvicorn
3
+ gradio
4
+ python-multipart
5
+ rdkit
6
+ Pillow
7
+ numpy
8
+ matplotlib
9
+ scipy
10
+ opencv-python
11
+ onnx
12
+ onnxruntime
13
+ pandas
14
+ tqdm
15
+ scikit-image
16
+ SmilesPE
17
+ paddleocr==2.9.1
18
+ paddlepaddle==2.6.2
19
+ torch==2.0.1
20
+ torchvision==0.15.2