prueba2 / app.py
aherrasf's picture
modificado
2507e72
raw
history blame contribute delete
399 Bytes
#import gradio as gr
#def greet(name):
# return "Hello " + name + "!!"
#demo = gr.Interface(fn=greet, inputs="text", outputs="text")
#demo.launch(share=True)
import gradio as gr
def predict(text):
return "Hello " + text + "!!"
title = "Prueba"
iface = gr.Interface(
fn=predict,
inputs=[gr.Textbox(label="text", lines=3)],
outputs='text',
title=title,
)
iface.launch()