UVA-BAclass / app.py
tkd4jt's picture
Create app.py
165cdc5 verified
raw
history blame contribute delete
365 Bytes
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()