Spaces:
Sleeping
Sleeping
Commit
·
0f56e7e
1
Parent(s):
b161b58
port
Browse files- Dockerfile +2 -2
- app.py +1 -1
Dockerfile
CHANGED
@@ -30,10 +30,10 @@ COPY . /app/
|
|
30 |
|
31 |
|
32 |
# Expose the port
|
33 |
-
EXPOSE
|
34 |
|
35 |
ENV FLASK_APP app.py
|
36 |
ENV FLASK_RUN_HOST 0.0.0.0
|
37 |
|
38 |
# Start the application with gunicorn
|
39 |
-
CMD ["gunicorn", "--bind", "0.0.0.0:
|
|
|
30 |
|
31 |
|
32 |
# Expose the port
|
33 |
+
EXPOSE 780
|
34 |
|
35 |
ENV FLASK_APP app.py
|
36 |
ENV FLASK_RUN_HOST 0.0.0.0
|
37 |
|
38 |
# Start the application with gunicorn
|
39 |
+
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
|
app.py
CHANGED
@@ -66,7 +66,7 @@ async def index():
|
|
66 |
return render_template("index.html", result=result, url_features=url_features)
|
67 |
|
68 |
if __name__ == "__main__":
|
69 |
-
app.run(debug=False,host="0.0.0.0")
|
70 |
|
71 |
'''
|
72 |
import asyncio
|
|
|
66 |
return render_template("index.html", result=result, url_features=url_features)
|
67 |
|
68 |
if __name__ == "__main__":
|
69 |
+
app.run(debug=False,host="0.0.0.0",port=7860)
|
70 |
|
71 |
'''
|
72 |
import asyncio
|