Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import torch
|
|
| 6 |
sarcasm_model = AutoModelForSequenceClassification.from_pretrained("dnzblgn/Sarcasm-Detection-Customer-Reviews")
|
| 7 |
sentiment_model = AutoModelForSequenceClassification.from_pretrained("dnzblgn/Sentiment-Analysis-Customer-Reviews")
|
| 8 |
sarcasm_tokenizer = AutoTokenizer.from_pretrained("microsoft/deberta-v3-base", use_fast=False)
|
| 9 |
-
sentiment_tokenizer = AutoTokenizer.from_pretrained("
|
| 10 |
|
| 11 |
def process_text_pipeline(user_input):
|
| 12 |
sentences = user_input.split("\n")
|
|
|
|
| 6 |
sarcasm_model = AutoModelForSequenceClassification.from_pretrained("dnzblgn/Sarcasm-Detection-Customer-Reviews")
|
| 7 |
sentiment_model = AutoModelForSequenceClassification.from_pretrained("dnzblgn/Sentiment-Analysis-Customer-Reviews")
|
| 8 |
sarcasm_tokenizer = AutoTokenizer.from_pretrained("microsoft/deberta-v3-base", use_fast=False)
|
| 9 |
+
sentiment_tokenizer = AutoTokenizer.from_pretrained("FacebookAI/roberta-base", use_fast=False)
|
| 10 |
|
| 11 |
def process_text_pipeline(user_input):
|
| 12 |
sentences = user_input.split("\n")
|