Sanzana Lora
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
|
5 |
|
6 |
# Function for cross-lingual summarization
|
7 |
def cross_lingual_summarization(article_text, target_language):
|
8 |
-
target_language = ""
|
9 |
WHITESPACE_HANDLER = lambda k: re.sub('\s+', ' ', re.sub('\n+', ' ', k.strip()))
|
10 |
|
11 |
# Load the model and tokenizer
|
|
|
5 |
|
6 |
# Function for cross-lingual summarization
|
7 |
def cross_lingual_summarization(article_text, target_language):
|
8 |
+
target_language = "english"
|
9 |
WHITESPACE_HANDLER = lambda k: re.sub('\s+', ' ', re.sub('\n+', ' ', k.strip()))
|
10 |
|
11 |
# Load the model and tokenizer
|