Spaces:
Sleeping
Sleeping
Download app.py from rvilhena/TimesTable: direct link, hf CLI and curl.
- Browser
- Download file 448 Bytes
-
https://huggingface.co/spaces/rvilhena/TimesTable/resolve/main/app.py
- Command line
-
hf download hf://spaces/rvilhena/TimesTable/app.py
-
curl -L -o app.py https://huggingface.co/spaces/rvilhena/TimesTable/resolve/main/app.py
448 Bytes
| import gradio as gr | |
| def multiply (x,y): | |
| return x*y | |
| with gr.Blocks() as app: | |
| gr.Label("TimesTable") | |
| with gr.Row(): | |
| x_slider = gr.Slider(maximum=10, step=1, label="X") | |
| y_slider = gr.Slider(maximum=12, step=1, label="y") | |
| with gr.Row(): | |
| result = gr.Text() | |
| x_slider.change(fn=multiply, inputs=[x_slider, y_slider], outputs=result) | |
| y_slider.change(fn=multiply, inputs=[x_slider, y_slider], outputs=result) | |
| app.launch() |