teste2 / gradio_app.py
Programer123's picture
Update gradio_app.py
3d97b57 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)