Spaces:
Running
Running
Download app.py from MHamdan/rose-explorer: direct link, hf CLI and curl.
- Browser
- Download file 460 Bytes
-
https://huggingface.co/spaces/MHamdan/rose-explorer/resolve/main/app.py
- Command line
-
hf download hf://spaces/MHamdan/rose-explorer/app.py
-
curl -L -o app.py https://huggingface.co/spaces/MHamdan/rose-explorer/resolve/main/app.py
460 Bytes
| """ROSE explorer: run locally with `python app/app.py`, or deploy app/ as a Hugging Face Space (sdk: gradio). | |
| The same interface runs with no server on the project's GitHub Pages site (site/index.html, Gradio-Lite). | |
| """ | |
| import sys | |
| from pathlib import Path | |
| sys.path.insert(0, str(Path(__file__).resolve().parent)) | |
| from genai_explorer.ui import build, launch_kwargs # noqa: E402 | |
| demo = build() | |
| if __name__ == "__main__": | |
| demo.launch(**launch_kwargs()) | |