Spaces:
Running
Running
BraydenMoore
commited on
Commit
•
30bdb6f
1
Parent(s):
7e19f9a
Update dockerfile
Browse files- Dockerfile +1 -1
- main.py +1 -1
Dockerfile
CHANGED
@@ -19,4 +19,4 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
19 |
# For environments with multiple CPU cores, increase the number of workers
|
20 |
# to be equal to the cores available.
|
21 |
# Timeout is set to 0 to disable the timeouts of the workers to allow Cloud Run to handle instance scaling.
|
22 |
-
CMD ["uvicorn", "
|
|
|
19 |
# For environments with multiple CPU cores, increase the number of workers
|
20 |
# to be equal to the cores available.
|
21 |
# Timeout is set to 0 to disable the timeouts of the workers to allow Cloud Run to handle instance scaling.
|
22 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
main.py
CHANGED
@@ -73,4 +73,4 @@ def guess():
|
|
73 |
return jsonify(response)
|
74 |
|
75 |
if __name__ == '__main__':
|
76 |
-
app.run(port=int(os.environ.get("PORT",
|
|
|
73 |
return jsonify(response)
|
74 |
|
75 |
if __name__ == '__main__':
|
76 |
+
app.run(port=int(os.environ.get("PORT", 7860)),host='0.0.0.0',debug=True)
|