VampeeHuntee commited on
Commit
1dc4b89
1 Parent(s): 4ab91be

update docker

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. 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 ["gunicorn", "app:app"]
 
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("0.0.0.0", port=7860, debug = True)
26
 
 
22
  return jsonify(result=inference(text))
23
 
24
  if __name__ == "__main__":
25
+ app.run(debug = False)
26