TimesTable / app.py
rvilhena's picture
Update app.py
4c59c90 verified
raw
history blame contribute delete
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()