Spaces:
Sleeping
Sleeping
Commit
·
31c96da
1
Parent(s):
7b8d7c2
fix concurency and asyncronous request
Browse files- Dockerfile +1 -1
- 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", "
|
|
|
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=
|
|
|
78 |
})
|
79 |
|
80 |
if __name__ == '__main__':
|
81 |
+
app.run(host='0.0.0.0', debug=True, port=7860)
|