Spaces:
Sleeping
Sleeping
VampeeHuntee
commited on
Commit
•
1dc4b89
1
Parent(s):
4ab91be
update docker
Browse files- Dockerfile +1 -1
- app.py +1 -1
Dockerfile
CHANGED
@@ -19,4 +19,4 @@ USER user
|
|
19 |
ENV HOME=/home/user \
|
20 |
PATH=/home/user/.local/bin:$PATH
|
21 |
|
22 |
-
CMD ["
|
|
|
19 |
ENV HOME=/home/user \
|
20 |
PATH=/home/user/.local/bin:$PATH
|
21 |
|
22 |
+
CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0", "--port=7860"]
|
app.py
CHANGED
@@ -22,5 +22,5 @@ def predict():
|
|
22 |
return jsonify(result=inference(text))
|
23 |
|
24 |
if __name__ == "__main__":
|
25 |
-
app.run(
|
26 |
|
|
|
22 |
return jsonify(result=inference(text))
|
23 |
|
24 |
if __name__ == "__main__":
|
25 |
+
app.run(debug = False)
|
26 |
|