Spaces:
Runtime error
Runtime error
import gradio as gr | |
from transformers import pipeline | |
def greet(name): | |
return "Hello " + name + "!" | |
with gr.Blocks() as demo: | |
name = gr.Textbox(label="Enter your question here") | |
submit_btn = gr.Button("Submit") | |
submit_btn.click(fn=greet, inputs=name) | |
#output = gr.Textbox(label="Output Box") | |
demo.launch() |