asritha22bce commited on
Commit
07a8a78
·
verified ·
1 Parent(s): d0e24f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ model = AutoModelForSeq2SeqLM.from_pretrained(model_path)
8
  tokenizer = AutoTokenizer.from_pretrained(model_path)
9
 
10
  # Initialize the preprocessing pipeline
11
- excel_path = "replacement_words" # Ensure this file is in the same folder
12
  pipeline = NegativeWordReplacer(excel_path)
13
 
14
  def generate_positive_headline(text):
 
8
  tokenizer = AutoTokenizer.from_pretrained(model_path)
9
 
10
  # Initialize the preprocessing pipeline
11
+ excel_path = "replacement_words.xlsx" # Ensure this file is in the same folder
12
  pipeline = NegativeWordReplacer(excel_path)
13
 
14
  def generate_positive_headline(text):