Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- Dockerfile +1 -0
- 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="/
|
| 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):
|