WHOAM-EYE commited on
Commit
0e3b09a
·
verified ·
1 Parent(s): df3bb9a

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -0
  2. server/app.py +1 -1
Dockerfile CHANGED
@@ -81,4 +81,5 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
81
 
82
  # Run the FastAPI server
83
  # The module path is constructed to work with the /app/env structure
 
84
  CMD ["sh", "-c", "cd /app/env && uvicorn server.app:app --host 0.0.0.0 --port 8000"]
 
81
 
82
  # Run the FastAPI server
83
  # The module path is constructed to work with the /app/env structure
84
+ ENV ENABLE_WEB_INTERFACE=true
85
  CMD ["sh", "-c", "cd /app/env && uvicorn server.app:app --host 0.0.0.0 --port 8000"]
server/app.py CHANGED
@@ -58,7 +58,7 @@ app = create_app(
58
 
59
  # Serve the custom analyst UI at /web. This keeps the Hugging Face Space
60
  # entrypoint aligned with `openenv push --no-interface`.
61
- app = gr.mount_gradio_app(app, create_demo(), path="/web")
62
 
63
 
64
  def serve(host: str = "0.0.0.0", port: int = 8000):
 
58
 
59
  # Serve the custom analyst UI at /web. This keeps the Hugging Face Space
60
  # entrypoint aligned with `openenv push --no-interface`.
61
+ app = gr.mount_gradio_app(app, create_demo(), path="/demo")
62
 
63
 
64
  def serve(host: str = "0.0.0.0", port: int = 8000):