Spaces:
Runtime error
Runtime error
Commit ·
20f92b6
1
Parent(s): ab1685d
refactor: Adjust message insertion and update metadata title
Browse files
app.py
CHANGED
|
@@ -319,10 +319,10 @@ def create_demo():
|
|
| 319 |
|
| 320 |
print(cleaned_ideal_answer)
|
| 321 |
|
| 322 |
-
history.
|
| 323 |
role="assistant",
|
| 324 |
content=cleaned_ideal_answer_html,
|
| 325 |
-
metadata={"title": "💡 Ideal answer"}
|
| 326 |
))
|
| 327 |
|
| 328 |
updated_label = f"Conversation turns: {current_turns}" if conversation_mode == 'Interviewer' else "Multimodal Coach Agent"
|
|
|
|
| 319 |
|
| 320 |
print(cleaned_ideal_answer)
|
| 321 |
|
| 322 |
+
history.insert(-1, ChatMessage(
|
| 323 |
role="assistant",
|
| 324 |
content=cleaned_ideal_answer_html,
|
| 325 |
+
metadata={"title": "💡 Ideal answer to your last message"}
|
| 326 |
))
|
| 327 |
|
| 328 |
updated_label = f"Conversation turns: {current_turns}" if conversation_mode == 'Interviewer' else "Multimodal Coach Agent"
|