Sanzana Lora commited on
Commit
fe30a72
·
verified ·
1 Parent(s): 8cd93db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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