Spaces:
Sleeping
Sleeping
File size: 365 Bytes
165cdc5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import gradio as gr
def greet(name):
return "Hello " + name + "!"
with gr.Blocks() as demo:
name = gr.Textbox(label = "Please enter the name below")
output = gr.Textbox(label = "Output Box")
greet_button = gr.Button("Greet")
greet_button.click(fn = greet,
inputs = name,
outputs = output)
demo.launch() |