Spaces:
Sleeping
Sleeping
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- .huggingface.yaml +1 -0
- Dockerfile +1 -1
- app.py +1 -1
- requirements.txt +0 -0
.huggingface.yaml
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
sdk: docker
|
Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
FROM python:3.
|
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(
|
|
|
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
|
|