Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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[:
|
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>
|