Spaces:
Sleeping
Sleeping
app updated
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ import torch
|
|
7 |
@st.cache_resource
|
8 |
def predict_sentiment(text):
|
9 |
# Load the model and tokenizer
|
10 |
-
model =
|
11 |
-
tokenizer =
|
12 |
|
13 |
# Predict the sentiment.
|
14 |
prediction = (text)
|
|
|
7 |
@st.cache_resource
|
8 |
def predict_sentiment(text):
|
9 |
# Load the model and tokenizer
|
10 |
+
model = AutoModelForSequenceClassification.from_pretrained("MrDdz/mytuned_test_trainer-base-cased1")
|
11 |
+
tokenizer = AutoTokenizer.from_pretrained("xlnet-base-cased")
|
12 |
|
13 |
# Predict the sentiment.
|
14 |
prediction = (text)
|