Download app.py from Maxew/demo_bot: direct link, hf CLI and curl.
- Browser
- Download file 339 Bytes
-
https://huggingface.co/spaces/Maxew/demo_bot/resolve/main/app.py
- Command line
-
hf download hf://spaces/Maxew/demo_bot/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Maxew/demo_bot/resolve/main/app.py
339 Bytes
| import gradio as gr | |
| import os | |
| space_path = os.environ.get('space_path') | |
| space_key = os.environ.get('read_token') | |
| theme = gr.themes.Default( | |
| primary_hue="green", | |
| ) | |
| with gr.Blocks(fill_height=True, theme=theme) as demo: | |
| iface = gr.load(name=space_path, hf_token=space_key, src='spaces') | |
| demo.launch(show_api=False, show_error=True) |