Anne31415 commited on
Commit
8c67e77
·
1 Parent(s): eb020fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -183,13 +183,7 @@ def page1():
183
  # Add assistant's response to chat history
184
  st.session_state.chat_history.append(("Assistant", last_assistant_message.content[0].text.value))
185
 
186
- # Display chat history
187
- for role, message in st.session_state.chat_history:
188
- if role == "User":
189
- st.text(f"User: {message}")
190
- elif role == "Assistant":
191
- st.text(f"Assistant: {message}")
192
-
193
  # Check if 'run' object has 'status' attribute
194
  if hasattr(st.session_state.run, 'status'):
195
  # Handle the 'running' status
 
183
  # Add assistant's response to chat history
184
  st.session_state.chat_history.append(("Assistant", last_assistant_message.content[0].text.value))
185
 
186
+
 
 
 
 
 
 
187
  # Check if 'run' object has 'status' attribute
188
  if hasattr(st.session_state.run, 'status'):
189
  # Handle the 'running' status