OVH commited on
Commit
596535f
·
1 Parent(s): 67b1c6c

Dockerfile Updated

Browse files
.ipynb_checkpoints/Dockerfile-checkpoint CHANGED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
+ ENV PATH="/home/user/.local/bin:$PATH"
6
+
7
+ WORKDIR /app
8
+
9
+ COPY --chown=user ./requirements.txt requirements.txt
10
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
+
12
+ COPY --chown=user . /app
13
+ CMD ["gunicorn","-b","0.0.0.0:7860", "app:app"]
.ipynb_checkpoints/requirements-checkpoint.txt ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ujson
2
+ imblearn
3
+ scikit-learn==1.5.2
4
+ loguru
5
+ astropy
6
+ textblob
7
+ nltk
8
+ transformers
9
+ pandas
10
+ numpy
11
+ tqdm
12
+ pymongo
13
+ scikit-learn
14
+ torch
15
+ pathlib
16
+ torch-geometric
17
+ huggingface-hub
18
+ matplotlib
19
+ seaborn
Dockerfile CHANGED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
+ ENV PATH="/home/user/.local/bin:$PATH"
6
+
7
+ WORKDIR /app
8
+
9
+ COPY --chown=user ./requirements.txt requirements.txt
10
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
+
12
+ COPY --chown=user . /app
13
+ CMD ["gunicorn","-b","0.0.0.0:7860", "app:app"]
app.py CHANGED
@@ -277,5 +277,3 @@ def predict():
277
  except Exception as e:
278
  return jsonify({'error': str(e)}), 500
279
 
280
- if __name__ == '__main__':
281
- app.run(debug=True, host='0.0.0.0', port=5000)
 
277
  except Exception as e:
278
  return jsonify({'error': str(e)}), 500
279