darshankr commited on
Commit
659554e
·
verified ·
1 Parent(s): 712f622

Create requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +27 -0
requirements.txt ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # requirements.txt
2
+ fastapi==0.68.0
3
+ uvicorn==0.15.0
4
+ torch
5
+ transformers
6
+ git+https://github.com/VarunGumma/IndicTransToolkit.git
7
+ pydantic
8
+ python-multipart
9
+
10
+ # Dockerfile
11
+ FROM python:3.9
12
+
13
+ WORKDIR /code
14
+
15
+ # Install git
16
+ RUN apt-get update && apt-get install -y git
17
+
18
+ COPY ./requirements.txt /code/requirements.txt
19
+ COPY ./app.py /code/app.py
20
+
21
+ # Install dependencies
22
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
23
+
24
+ # Expose the port
25
+ EXPOSE 7860
26
+
27
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]