Spaces:
Sleeping
Sleeping
File size: 297 Bytes
2ad381c 8c3d7e3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | 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( ) |