LucasAguetai commited on
Commit
505edcf
1 Parent(s): 2679d8c

fix f-string error

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -58,11 +58,11 @@ if prompt := st.chat_input(placeholder="Write to ALOQAS..."):
58
  with st.sidebar:
59
  st.title("Statistics on the last answer")
60
  st.write(f"Score: {round(json.loads(response.text)['score'], 3)}")
61
- st.write(f"Start: {json.loads(response.text)["start"]}")
62
- st.write(f"End: {json.loads(response.text)["end"]}")
63
 
64
  for msg in st.session_state.messages:
65
- st.chat_message(msg["role"]).write(msg["content"])
66
 
67
  if error == 1:
68
  message_rouge = "⚠️ Please provide a context via the menu on your left."
 
58
  with st.sidebar:
59
  st.title("Statistics on the last answer")
60
  st.write(f"Score: {round(json.loads(response.text)['score'], 3)}")
61
+ st.write(f"Start: {json.loads(response.text)['start']}")
62
+ st.write(f"End: {json.loads(response.text)['end']}")
63
 
64
  for msg in st.session_state.messages:
65
+ st.chat_message(msg["role"]).write(msg['content'])
66
 
67
  if error == 1:
68
  message_rouge = "⚠️ Please provide a context via the menu on your left."