Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ def interact_with_server(prompt, ip_address, user_agent):
|
|
| 7 |
response_text = response.text
|
| 8 |
|
| 9 |
# Count the number of messages in the conversation
|
| 10 |
-
conversation_messages = response_text.split("
|
| 11 |
num_messages = len(conversation_messages)
|
| 12 |
|
| 13 |
# Print the information
|
|
|
|
| 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 |
# Print the information
|