Spaces:
Runtime error
Runtime error
import gradio as gr | |
def greet(name): | |
return "Hello " + name + "!" | |
with gr.Blocks() as demo: | |
name = gr.Textbox(label="Name") | |
gr.Textbox(label="Test") | |
gr.Textbox(label="Test") | |
gr.Textbox(label="Test") | |
gr.Textbox(label="Test") | |
gr.Textbox(label="Test") | |
gr.Textbox(label="Test") | |
gr.Textbox(label="Test") | |
gr.Textbox(label="Test") | |
output = gr.Textbox(label="Output Box") | |
greet_btn = gr.Button("Greet") | |
greet_btn.click(fn=greet, inputs=name, outputs=output, api_name="greet") | |
if __name__ == "__main__": | |
demo.launch() | |