teste2 / app.py
Programer123's picture
Rename gradio_app.py to app.py
422a9a6 verified
raw
history blame
282 Bytes
import gradio as gr
def responder(texto):
return f"Recebi: {texto}"
demo = gr.Interface(
fn=responder,
inputs=gr.Textbox(label="Escreve algo"),
outputs=gr.Textbox(label="Resposta"),
title="Módulo Gradio"
)
demo.launch(server_name="0.0.0.0", server_port=7860)