Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,8 +2,8 @@ import joblib
|
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
# Load the model and vectorizer
|
| 5 |
-
model = joblib.load('
|
| 6 |
-
vectorizer = joblib.load('
|
| 7 |
|
| 8 |
def predict_review_rating(review_text):
|
| 9 |
# Transform the review text using the loaded vectorizer
|
|
|
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
# Load the model and vectorizer
|
| 5 |
+
model = joblib.load('logistic_regression_model.pkl')
|
| 6 |
+
vectorizer = joblib.load('tfidf_vectorizer.pkl')
|
| 7 |
|
| 8 |
def predict_review_rating(review_text):
|
| 9 |
# Transform the review text using the loaded vectorizer
|