gaidasalsaa commited on
Commit
1d2796b
·
1 Parent(s): 949a823

Fix: Using PyTorch base image and updating requirements

Browse files
Files changed (2) hide show
  1. Dockerfile +12 -0
  2. requirements.txt +0 -1
Dockerfile CHANGED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM pytorch/pytorch:2.1.0-cuda12.1-cudnn8-runtime
2
+
3
+ WORKDIR /app
4
+
5
+ COPY requirements.txt /app/requirements.txt
6
+ RUN pip install --no-cache-dir fastapi uvicorn[standard] pydantic transformers tweepy numpy
7
+
8
+ COPY . /app
9
+
10
+ ENV PORT 7860
11
+
12
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
requirements.txt CHANGED
@@ -2,7 +2,6 @@ fastapi
2
  uvicorn[standard]
3
  python-multipart
4
  transformers
5
- torch
6
  pandas
7
  tweepy
8
  emoji
 
2
  uvicorn[standard]
3
  python-multipart
4
  transformers
 
5
  pandas
6
  tweepy
7
  emoji