mindwrapped's picture
Update app.py
1e97661
raw
history blame contribute delete
267 Bytes
import gradio as gr
def update_value(val):
return f'Value is set to {val}'
demo = gr.Blocks()
with demo:
inp = gr.Slider(0, 100, label='Value')
md = gr.Markdown('Select a value')
inp.change(fn=update_value, inputs=inp, outputs=md)
demo.launch(debug=True)