Spaces:
Sleeping
Sleeping
Download examples/gradio/basic.py from Cippppy/YOLOv8_Interface: direct link, hf CLI and curl.
- Browser
- Download file 467 Bytes
-
https://huggingface.co/spaces/Cippppy/YOLOv8_Interface/resolve/main/examples/gradio/basic.py
- Command line
-
hf download hf://spaces/Cippppy/YOLOv8_Interface/examples/gradio/basic.py
-
curl -L -o basic.py https://huggingface.co/spaces/Cippppy/YOLOv8_Interface/resolve/main/examples/gradio/basic.py
467 Bytes
| import gradio as gr | |
| def update(name): | |
| return f"Welcome to Gradio, {name}!" | |
| with gr.Blocks() as demo: | |
| gr.Markdown("Start typing below and then click **Run** to see the output.") | |
| with gr.Row(): | |
| inp = gr.Textbox(placeholder="What is your name?") | |
| out = gr.Textbox() | |
| btn = gr.Button("Run") | |
| btn.click(fn=update, inputs=inp, outputs=out) | |
| if __name__== "__main__" : | |
| # demo.queue().launch(share=True) | |
| demo.queue().launch() |