Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def text_summary(text, translate_fa, maxlength=None):
|
|
| 12 |
summary = Summary()
|
| 13 |
result = summary(translatedtext)
|
| 14 |
if translate_fa:
|
| 15 |
-
result = GoogleTranslator(source='auto', target='
|
| 16 |
return result
|
| 17 |
|
| 18 |
def extract_text_from_pdf(file_path):
|
|
|
|
| 12 |
summary = Summary()
|
| 13 |
result = summary(translatedtext)
|
| 14 |
if translate_fa:
|
| 15 |
+
result = GoogleTranslator(source='auto', target='fa').translate(result)
|
| 16 |
return result
|
| 17 |
|
| 18 |
def extract_text_from_pdf(file_path):
|