Spaces:
Runtime error
Runtime error
Fix assistant reply formatting fallback.
Browse files
app.py
CHANGED
@@ -126,7 +126,7 @@ Color: ['W']
|
|
126 |
if len(new_card_text) > 1:
|
127 |
new_card_text = new_card_text[1].strip()
|
128 |
else:
|
129 |
-
new_card_text =
|
130 |
if len(new_card_text) < 2:
|
131 |
return assistant_reply, card_text, None
|
132 |
new_card_text = new_card_text[1].strip()
|
|
|
126 |
if len(new_card_text) > 1:
|
127 |
new_card_text = new_card_text[1].strip()
|
128 |
else:
|
129 |
+
new_card_text = assistant_reply.split('\n\n')
|
130 |
if len(new_card_text) < 2:
|
131 |
return assistant_reply, card_text, None
|
132 |
new_card_text = new_card_text[1].strip()
|