Small feedback ๐
#1
by
merve
HF staff
- opened
Awesome demo! ๐ I was wondering if you could specify what is the alpha range sliders, it would be nice if you could put a label on them.
It would also be nice if you could replace submit button .click() with an event listeners with the sliders, e.g. slider.change(function, inputs, output) like below example.
import gradio as gr
def welcome(name):
return f"Welcome to Gradio, {name}!"
with gr.Blocks() as demo:
gr.Markdown(
"""
# Hello World!
Start typing below to see the output.
""")
inp = gr.Textbox(placeholder="What is your name?")
out = gr.Textbox()
inp.change(welcome, inp, out)
demo.launch()