Spaces:
Build error
Build error
Update docstrings
Browse files- Dockerfile +3 -0
- app.py +9 -4
Dockerfile
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
FROM python:3.11.8
|
| 2 |
|
| 3 |
# Set up a new user named "user" with user ID 1000
|
|
|
|
| 1 |
+
# This Dockerfile is used for crating the HuggingFace docker space
|
| 2 |
+
# See: https://huggingface.co/docs/hub/en/spaces-sdks-docker
|
| 3 |
+
|
| 4 |
FROM python:3.11.8
|
| 5 |
|
| 6 |
# Set up a new user named "user" with user ID 1000
|
app.py
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
from __future__ import annotations
|
| 2 |
|
| 3 |
import urllib
|
|
@@ -79,7 +88,3 @@ with gr.Blocks() as demo:
|
|
| 79 |
|
| 80 |
|
| 81 |
app = gr.mount_gradio_app(app, demo, path=CUSTOM_PATH)
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
# Run this from the terminal as you would normally start a FastAPI app: `uvicorn run:app`
|
| 85 |
-
# and navigate to http://localhost:8000 in your browser.
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
A Gradio app that uses Rerun to visualize a Huggingface dataset.
|
| 3 |
+
|
| 4 |
+
This app mounts the Gradio app inside of FastAPI in order to set the CORS headers.
|
| 5 |
+
|
| 6 |
+
Run this from the terminal as you would normally start a FastAPI app: `uvicorn app:app`
|
| 7 |
+
and navigate to http://localhost:8000 in your browser.
|
| 8 |
+
"""
|
| 9 |
+
|
| 10 |
from __future__ import annotations
|
| 11 |
|
| 12 |
import urllib
|
|
|
|
| 88 |
|
| 89 |
|
| 90 |
app = gr.mount_gradio_app(app, demo, path=CUSTOM_PATH)
|
|
|
|
|
|
|
|
|
|
|
|