Spaces:
Sleeping
Sleeping
import gradio as gr | |
import numpy as np | |
def my_add(a, b): | |
return a + b | |
with gr.Blocks() as myblock: | |
a = gr.Slider(minimum=0, maximum=10) | |
b = gr.Slider(minimum=0, maximum=10) | |
c = gr.Label() | |
button=gr.Button(label="Click me") | |
button.click(my_add,[a, b], c) | |
myblock.launch( ) |