Spaces:
Sleeping
Sleeping
udbhav
commited on
Commit
·
381ab13
1
Parent(s):
dd4f5b0
changed the server
Browse files- Dockerfile +1 -1
- app.py +1 -1
Dockerfile
CHANGED
|
@@ -70,7 +70,7 @@ RUN chmod +x app.py
|
|
| 70 |
RUN chown -R 1000:1000 /app
|
| 71 |
|
| 72 |
# Expose Trame/Gradio port
|
| 73 |
-
EXPOSE
|
| 74 |
|
| 75 |
# Run app (Trame or Gradio, same entrypoint)
|
| 76 |
# CMD ["python", "app.py"]
|
|
|
|
| 70 |
RUN chown -R 1000:1000 /app
|
| 71 |
|
| 72 |
# Expose Trame/Gradio port
|
| 73 |
+
EXPOSE 7860
|
| 74 |
|
| 75 |
# Run app (Trame or Gradio, same entrypoint)
|
| 76 |
# CMD ["python", "app.py"]
|
app.py
CHANGED
|
@@ -1775,7 +1775,7 @@ def main():
|
|
| 1775 |
app.server.controller.add("decimate_again", app.decimate_again)
|
| 1776 |
app.server.controller.add("reset_mesh", app.reset_mesh)
|
| 1777 |
# app.server.start(7860)
|
| 1778 |
-
port = int(os.environ.get("PORT", "
|
| 1779 |
|
| 1780 |
# `host` is controlled via CLI (--host 0.0.0.0), here we just:
|
| 1781 |
app.server.start(
|
|
|
|
| 1775 |
app.server.controller.add("decimate_again", app.decimate_again)
|
| 1776 |
app.server.controller.add("reset_mesh", app.reset_mesh)
|
| 1777 |
# app.server.start(7860)
|
| 1778 |
+
port = int(os.environ.get("PORT", "7860"))
|
| 1779 |
|
| 1780 |
# `host` is controlled via CLI (--host 0.0.0.0), here we just:
|
| 1781 |
app.server.start(
|