Spaces:
Build error
Build error
Update app.py
Browse files
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):
|