Spaces:
Runtime error
Runtime error
File size: 330 Bytes
49d7555 a73b6a0 49d7555 a73b6a0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import gradio as gr
def greet(name):
return "Hello " + name
#demo = gr.Interface(fn=greet, inputs="text", outputs="text")
#demo.launch()
# We instantiate the Textbox class
textbox = gr.Textbox(label="Type your name here:", placeholder="John Doe", lines=2)
gr.Interface(fn=greet, inputs=textbox, outputs="text").launch() |