CarlosUFPE commited on
Commit
65ac9bc
·
verified ·
1 Parent(s): aef99f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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"Funcionário (PT): {msg_pt}\n*(Translation: {traducao})*"
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 do Funcionário (PT)", placeholder="Digite em Português...")
36
- btn_func = gr.Button("Enviar Funcionário")
37
  with gr.Column():
38
- msg_est = gr.Textbox(label="Mensagem do Estudante (EN)", placeholder="Digite em Inglês...")
39
- btn_est = gr.Button("Enviar Estudante")
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