Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,13 +3,13 @@ import gradio as gr
|
|
| 3 |
def responder(mensagem):
|
| 4 |
return f"Você disse: {mensagem}"
|
| 5 |
|
| 6 |
-
|
| 7 |
fn=responder,
|
| 8 |
-
inputs="
|
| 9 |
-
outputs="
|
| 10 |
-
title="Teste
|
| 11 |
-
description="
|
| 12 |
)
|
| 13 |
|
| 14 |
if __name__ == "__main__":
|
| 15 |
-
|
|
|
|
| 3 |
def responder(mensagem):
|
| 4 |
return f"Você disse: {mensagem}"
|
| 5 |
|
| 6 |
+
demo = gr.Interface(
|
| 7 |
fn=responder,
|
| 8 |
+
inputs=gr.Textbox(label="Digite algo"),
|
| 9 |
+
outputs=gr.Textbox(label="Resposta"),
|
| 10 |
+
title="Teste de Chat",
|
| 11 |
+
description="Validação inicial do Space com Gradio."
|
| 12 |
)
|
| 13 |
|
| 14 |
if __name__ == "__main__":
|
| 15 |
+
demo.launch()
|