oriastanjung commited on
Commit
31c96da
1 Parent(s): 7b8d7c2

fix concurency and asyncronous request

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. main.py +1 -1
Dockerfile CHANGED
@@ -19,4 +19,4 @@ RUN pip3 install --no-cache-dir -r requirements.txt
19
  EXPOSE 5000
20
 
21
  # Run the application
22
- CMD ["gunicorn", "-b","--host","0.0.0.0:7860", "main:app"]
 
19
  EXPOSE 5000
20
 
21
  # Run the application
22
+ CMD ["gunicorn", "--bind","--host","0.0.0.0:7860", "main:app"]
main.py CHANGED
@@ -78,4 +78,4 @@ async def upload_image():
78
  })
79
 
80
  if __name__ == '__main__':
81
- app.run(host='0.0.0.0', debug=True, port=5000)
 
78
  })
79
 
80
  if __name__ == '__main__':
81
+ app.run(host='0.0.0.0', debug=True, port=7860)