KingNish commited on
Commit
a0b78eb
·
verified ·
1 Parent(s): 1b1f81e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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) > 64000:
79
- content = content[:64000]
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', ' ')