Small feedback ๐
#1
by
merve
HF staff
- opened
Hello @EduardoPacheco great work!
It would be even better if you could add different hyperparameters and replace Run/Submit button with an event listener. See below with an example. What do you think?
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()
Done!
EduardoPacheco
changed discussion status to
closed