fschwartzer commited on
Commit
31a3643
verified
1 Parent(s): 10379c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -49,14 +49,14 @@ user_question = st.text_input("Escreva sua quest茫o aqui:", "")
49
  if user_question:
50
  # Adiciona emoji de pessoa quando a pergunta est谩 sendo digitada
51
  st.session_state['history'].append(('馃懁', user_question))
52
- st.write(f"馃懁 {user_question}")
53
 
54
  # Gera a resposta
55
  bot_response = response(user_question)
56
 
57
- # Adiciona emoji de rob么 quando a resposta est谩 sendo gerada
58
  st.session_state['history'].append(('馃', bot_response))
59
- st.write(f"馃 {bot_response}")
60
 
61
  # Bot茫o para limpar o hist贸rico
62
  if st.button("Limpar"):
@@ -65,6 +65,6 @@ if st.button("Limpar"):
65
  # Exibe o hist贸rico de conversas
66
  for sender, message in st.session_state['history']:
67
  if sender == '馃懁':
68
- st.write(f"馃懁 {message}")
69
  elif sender == '馃':
70
- st.write(f"馃 {message}")
 
49
  if user_question:
50
  # Adiciona emoji de pessoa quando a pergunta est谩 sendo digitada
51
  st.session_state['history'].append(('馃懁', user_question))
52
+ st.markdown(f"**馃懁 {user_question}**")
53
 
54
  # Gera a resposta
55
  bot_response = response(user_question)
56
 
57
+ # Adiciona emoji de rob么 quando a resposta est谩 sendo gerada e alinha 脿 direita
58
  st.session_state['history'].append(('馃', bot_response))
59
+ st.markdown(f"<div style='text-align: right'>**馃 {bot_response}**</div>", unsafe_allow_html=True)
60
 
61
  # Bot茫o para limpar o hist贸rico
62
  if st.button("Limpar"):
 
65
  # Exibe o hist贸rico de conversas
66
  for sender, message in st.session_state['history']:
67
  if sender == '馃懁':
68
+ st.markdown(f"**馃懁 {message}**")
69
  elif sender == '馃':
70
+ st.markdown(f"<div style='text-align: right'>**馃 {message}**</div>", unsafe_allow_html=True)