Spaces:
Running
Running
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 |
content = content.replace('\n', ' ')
|
81 |
content = content.replace('\r', ' ')
|
82 |
content = content.replace('\t', ' ')
|
|
|
75 |
|
76 |
def chat_document(file, question):
|
77 |
content = str(read_document(file))
|
78 |
+
if len(content) > 32000:
|
79 |
+
content = content[:32000]
|
80 |
content = content.replace('\n', ' ')
|
81 |
content = content.replace('\r', ' ')
|
82 |
content = content.replace('\t', ' ')
|