Spaces:
Runtime error
Runtime error
johnowhitaker
commited on
Commit
•
19ded2a
1
Parent(s):
10af72c
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def preprocess(text):
|
|
25 |
return " ".join(new_text)
|
26 |
|
27 |
# Loading pretrained model
|
28 |
-
MODEL =
|
29 |
tokenizer = AutoTokenizer.from_pretrained(MODEL)
|
30 |
model = AutoModelForSequenceClassification.from_pretrained(MODEL)
|
31 |
model.save_pretrained(MODEL)
|
|
|
25 |
return " ".join(new_text)
|
26 |
|
27 |
# Loading pretrained model
|
28 |
+
MODEL = 'cardiffnlp/twitter-roberta-base-sentiment'
|
29 |
tokenizer = AutoTokenizer.from_pretrained(MODEL)
|
30 |
model = AutoModelForSequenceClassification.from_pretrained(MODEL)
|
31 |
model.save_pretrained(MODEL)
|