Spaces:
Sleeping
Sleeping
Download app.py from junhuac/gradio_renderer: direct link, hf CLI and curl.
- Browser
- Download file 392 Bytes
-
https://huggingface.co/spaces/junhuac/gradio_renderer/resolve/main/app.py
- Command line
-
hf download hf://spaces/junhuac/gradio_renderer/app.py
-
curl -L -o app.py https://huggingface.co/spaces/junhuac/gradio_renderer/resolve/main/app.py
392 Bytes
| import gradio as gr | |
| from gradio_renderer import Renderer | |
| example = Renderer().example_value() | |
| demo = gr.Interface( | |
| lambda x:x, | |
| Renderer(), # interactive version of your component | |
| Renderer(), # static version of your component | |
| # examples=[[example]], # uncomment this line to view the "example version" of your component | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() | |