Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Fix model path in predict.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yashasvini121 authored Oct 28, 2024
1 parent 45bf73e commit 7baf52c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions models/Review_sentiments/predict.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# models/tweet_sentiment_analysis/predict.py

import joblib
import pandas as pd

# Load the model and vectorizer
model = joblib.load('model (2).pkl')
vectorizer = joblib.load('vectorizer.pkl')
model = joblib.load("models/review_sentiments/saved_models/model (2).pkl")
vectorizer = joblib.load(
"models/review_sentiments/saved_models/vectorizer.pkl"
)

def predict_sentiment(tweet):
# Transform the input tweet
Expand Down

0 comments on commit 7baf52c

Please sign in to comment.