File size: 281 Bytes
a5c25d5
 
 
 
 
 
 
 
 
e11d1ed
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr

def greet(name):
    return "Authenticated"

with gr.Blocks() as demo:
    name = gr.Textbox(label="Name")
    output = gr.Textbox(label="Output Box")
    greet_btn = gr.Button("Greet")
    greet_btn.click(fn=greet, inputs=name, outputs=output)


demo.launch()