Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def traduzir_en_pt(texto):
|
|
14 |
|
15 |
def enviar_funcionario(msg_pt, history):
|
16 |
traducao = traduzir_pt_en(msg_pt)
|
17 |
-
resposta = f"
|
18 |
history = history + [(msg_pt, resposta)]
|
19 |
return "", history
|
20 |
|
@@ -32,11 +32,11 @@ with gr.Blocks() as demo:
|
|
32 |
|
33 |
with gr.Row():
|
34 |
with gr.Column():
|
35 |
-
msg_func = gr.Textbox(label="Mensagem
|
36 |
-
btn_func = gr.Button("Enviar
|
37 |
with gr.Column():
|
38 |
-
msg_est = gr.Textbox(label="
|
39 |
-
btn_est = gr.Button("
|
40 |
|
41 |
clear = gr.Button("Limpar conversa")
|
42 |
|
|
|
14 |
|
15 |
def enviar_funcionario(msg_pt, history):
|
16 |
traducao = traduzir_pt_en(msg_pt)
|
17 |
+
resposta = f"Patrícia (PT): {msg_pt}\n*(Translation: {traducao})*"
|
18 |
history = history + [(msg_pt, resposta)]
|
19 |
return "", history
|
20 |
|
|
|
32 |
|
33 |
with gr.Row():
|
34 |
with gr.Column():
|
35 |
+
msg_func = gr.Textbox(label="Mensagem de Patrícia (PT)", placeholder="Digite em Português...")
|
36 |
+
btn_func = gr.Button("Enviar mensagem")
|
37 |
with gr.Column():
|
38 |
+
msg_est = gr.Textbox(label="Student's message (EN)", placeholder="Type in English...")
|
39 |
+
btn_est = gr.Button("Send message")
|
40 |
|
41 |
clear = gr.Button("Limpar conversa")
|
42 |
|