Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,8 +75,8 @@ def read_document(file):
|
|
| 75 |
|
| 76 |
def chat_document(file, question):
|
| 77 |
content = str(read_document(file))
|
| 78 |
-
if len(content) >
|
| 79 |
-
content = content[:
|
| 80 |
|
| 81 |
|
| 82 |
# Define system prompt for the chat API
|
|
|
|
| 75 |
|
| 76 |
def chat_document(file, question):
|
| 77 |
content = str(read_document(file))
|
| 78 |
+
if len(content) > 64000:
|
| 79 |
+
content = content[:64000]
|
| 80 |
|
| 81 |
|
| 82 |
# Define system prompt for the chat API
|