Spaces:
Runtime error
Runtime error
import gradio as gr | |
import transformers as tr | |
def update(name): | |
return f"Welcome to Gradio, {name}!" | |
demo = gr.Blocks() | |
with 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(fn=update, | |
inputs=inp, | |
outputs=out) | |
demo.launch() |