Update core.py
Browse files
core.py
CHANGED
|
@@ -74,6 +74,7 @@ def text_summarize_vi(text_input):
|
|
| 74 |
return text
|
| 75 |
|
| 76 |
def text_summarize(text_input, lang):
|
|
|
|
| 77 |
if lang == 'English':
|
| 78 |
return text_summarize_en(text_input)
|
| 79 |
elif lang == 'Vietnamese':
|
|
|
|
| 74 |
return text
|
| 75 |
|
| 76 |
def text_summarize(text_input, lang):
|
| 77 |
+
if (len(text_input) <= 100): return text_input
|
| 78 |
if lang == 'English':
|
| 79 |
return text_summarize_en(text_input)
|
| 80 |
elif lang == 'Vietnamese':
|