Spaces:
Sleeping
Sleeping
Update gradio_app.py
Browse files- gradio_app.py +13 -0
gradio_app.py
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def responder(texto):
|
| 4 |
+
return f"Recebi: {texto}"
|
| 5 |
+
|
| 6 |
+
demo = gr.Interface(
|
| 7 |
+
fn=responder,
|
| 8 |
+
inputs=gr.Textbox(label="Escreve algo"),
|
| 9 |
+
outputs=gr.Textbox(label="Resposta"),
|
| 10 |
+
title="M贸dulo Gradio"
|
| 11 |
+
)
|
| 12 |
+
|
| 13 |
+
demo.launch(server_name="0.0.0.0", server_port=7860)
|