Spaces:
Sleeping
Sleeping
Download app.py from nicolas-dufour/miro: direct link, hf CLI and curl.
- Browser
- Download file 532 Bytes
-
https://huggingface.co/spaces/nicolas-dufour/miro/resolve/main/app.py
- Command line
-
hf download hf://spaces/nicolas-dufour/miro/app.py
-
curl -L -o app.py https://huggingface.co/spaces/nicolas-dufour/miro/resolve/main/app.py
532 Bytes
| # Gradio Spaces' hot-reload picks up the ``demo`` Blocks but only honours | |
| # theme/css when they're passed to ``launch()``. We pull both from the | |
| # miro-t2i package and inject them here so the Space matches the local | |
| # look. | |
| import gradio as gr | |
| from miro.app import app as demo, CSS | |
| demo.launch( | |
| server_name="0.0.0.0", | |
| server_port=7860, | |
| ssr_mode=False, | |
| theme=gr.themes.Default( | |
| primary_hue="slate", | |
| secondary_hue="slate", | |
| neutral_hue="slate", | |
| radius_size="md", | |
| ), | |
| css=CSS, | |
| ) | |