manue commited on
Commit
00c6e88
·
1 Parent(s): 7106645

Update Dockerfile to use Python 3.10, modify app.py to run on host 0.0.0.0, and add .huggingface.yaml configuration

Browse files
Files changed (4) hide show
  1. .huggingface.yaml +1 -0
  2. Dockerfile +1 -1
  3. app.py +1 -1
  4. requirements.txt +0 -0
.huggingface.yaml ADDED
@@ -0,0 +1 @@
 
 
1
+ sdk: docker
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
 
1
+ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
app.py CHANGED
@@ -19,4 +19,4 @@ def analisis():
19
  return jsonify({"message": model.result}), 200
20
 
21
  if __name__ == '__main__':
22
- app.run(debug=True)
 
19
  return jsonify({"message": model.result}), 200
20
 
21
  if __name__ == '__main__':
22
+ app.run(host='0.0.0.0', port=7860)
requirements.txt CHANGED
Binary files a/requirements.txt and b/requirements.txt differ