Spaces:
Runtime error
Runtime error
Commit
•
87e8338
1
Parent(s):
585a934
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ import transformers
|
|
3 |
import torch
|
4 |
|
5 |
# Load the model and tokenizer
|
6 |
-
|
7 |
-
|
8 |
|
9 |
# Define the function for sentiment analysis
|
10 |
@st.cache_resource
|
|
|
3 |
import torch
|
4 |
|
5 |
# Load the model and tokenizer
|
6 |
+
tokenizer = AutoTokenizer.from_pretrained("ikoghoemmanuell/finetuned_sentiment_modell")
|
7 |
+
model = AutoModelForSequenceClassification.from_pretrained("ikoghoemmanuell/finetuned_sentiment_modell")
|
8 |
|
9 |
# Define the function for sentiment analysis
|
10 |
@st.cache_resource
|