Chan-Y commited on
Commit
d436c9a
1 Parent(s): df1f042

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ def summarize(file, n_words):
38
  else:
39
  text = read_txt(file_path)
40
 
41
- lang = detect(text[:300])
42
  template_translate = '''
43
  Please carefully read the following document:
44
  <document>
 
38
  else:
39
  text = read_txt(file_path)
40
 
41
+ lang = detect(text[:2000])
42
  template_translate = '''
43
  Please carefully read the following document:
44
  <document>