fschwartzer commited on
Commit
f62bfee
1 Parent(s): d8f6691

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -64,15 +64,15 @@ user_question = st.text_input("Escreva sua questão aqui:", "")
64
 
65
  if user_question:
66
  # Add person emoji when typing question
67
- st.session_state['history'].append(('??', user_question))
68
- st.markdown(f"**?? {user_question}**")
69
 
70
  # Generate the response
71
  bot_response = response(user_question, table_data)
72
 
73
  # Add robot emoji when generating response and align to the right
74
- st.session_state['history'].append(('??', bot_response))
75
- st.markdown(f"<div style='text-align: right'>**?? {bot_response}**</div>", unsafe_allow_html=True)
76
 
77
  # Clear history button
78
  if st.button("Limpar"):
@@ -80,7 +80,7 @@ if st.button("Limpar"):
80
 
81
  # Display chat history
82
  for sender, message in st.session_state['history']:
83
- if sender == '??':
84
- st.markdown(f"**?? {message}**")
85
- elif sender == '??':
86
- st.markdown(f"<div style='text-align: right'>**?? {message}**</div>", unsafe_allow_html=True)
 
64
 
65
  if user_question:
66
  # Add person emoji when typing question
67
+ st.session_state['history'].append(('👤', user_question))
68
+ st.markdown(f"🤖 {user_question}")
69
 
70
  # Generate the response
71
  bot_response = response(user_question, table_data)
72
 
73
  # Add robot emoji when generating response and align to the right
74
+ st.session_state['history'].append(('👤', bot_response))
75
+ st.markdown(f"<div style='text-align: right'>🤖 {bot_response}</div>", unsafe_allow_html=True)
76
 
77
  # Clear history button
78
  if st.button("Limpar"):
 
80
 
81
  # Display chat history
82
  for sender, message in st.session_state['history']:
83
+ if sender == '👤':
84
+ st.markdown(f"🤖 {message}")
85
+ elif sender == '👤':
86
+ st.markdown(f"<div style='text-align: right'>🤖 {message}</div>", unsafe_allow_html=True)