import gradio as gr
defupdate_value(val):
returnf'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)