ikoghoemmanuell commited on
Commit
87e8338
1 Parent(s): 585a934

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,8 +3,8 @@ import transformers
3
  import torch
4
 
5
  # Load the model and tokenizer
6
- model = transformers.AutoModelForSequenceClassification.from_pretrained("ikoghoemmanuell/finetuned_sentiment_model")
7
- tokenizer = transformers.AutoTokenizer.from_pretrained("ikoghoemmanuell/finetuned_sentiment_tokenizer")
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