Spaces:
Running
Running
Commit
·
bcad864
1
Parent(s):
030a269
shortened
Browse files- conversation.py +1 -1
conversation.py
CHANGED
@@ -91,7 +91,7 @@ class Conversation:
|
|
91 |
joined_paragraphs = (' '.join(paragraphs))
|
92 |
|
93 |
if len(joined_paragraphs) > 7500:
|
94 |
-
paragraphs = joined_paragraphs[:
|
95 |
|
96 |
self.messages = []
|
97 |
self.messages.append({'role': 'system', 'content': "You are a helpful assistant that must answer questions about a website."})
|
|
|
91 |
joined_paragraphs = (' '.join(paragraphs))
|
92 |
|
93 |
if len(joined_paragraphs) > 7500:
|
94 |
+
paragraphs = joined_paragraphs[:3000]
|
95 |
|
96 |
self.messages = []
|
97 |
self.messages.append({'role': 'system', 'content': "You are a helpful assistant that must answer questions about a website."})
|