gstaff commited on
Commit
e4b8096
·
1 Parent(s): f5308e7

Fix assistant reply formatting fallback.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = new_card_text.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()
 
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()