Spaces:
Runtime error
Runtime error
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) |