Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -183,12 +183,6 @@ 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'):
|
|
|
|
| 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'):
|