Compliance_Test / app_simple.py
dwipper's picture
Rename app.py to app_simple.py
2cf36e9
raw
history blame
325 Bytes
import gradio as gr
def greet(name):
return "Hello " + name + "!"
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, api_name="greet")
demo.launch(auth=('admin','test'))