AEUPH commited on
Commit
ccf4d6f
·
1 Parent(s): b9a6a8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ def interact_with_server(prompt):
7
  response_text = response.text
8
 
9
  # Count the number of messages in the conversation
10
- conversation_messages = response_text.split("<br>") # Assuming each message is separated by "<br>"
11
  num_messages = len(conversation_messages)
12
 
13
  return response_text, num_messages
 
7
  response_text = response.text
8
 
9
  # Count the number of messages in the conversation
10
+ conversation_messages = response_text.split("\n") # Assuming each message is separated by "<br>"
11
  num_messages = len(conversation_messages)
12
 
13
  return response_text, num_messages