Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ st.title('Unveiling Sentiment: A Deep Dive into Sentiment Analysis 🐨')
|
|
17 |
def predict_sentiment(custom_data):
|
18 |
try:
|
19 |
# Load the trained model
|
20 |
-
model_path = '
|
21 |
if not os.path.exists(model_path):
|
22 |
st.error(f"Model file not found: {model_path}")
|
23 |
return None
|
|
|
17 |
def predict_sentiment(custom_data):
|
18 |
try:
|
19 |
# Load the trained model
|
20 |
+
model_path = 'sentiment_analysis_model.h5' # Use the new model file
|
21 |
if not os.path.exists(model_path):
|
22 |
st.error(f"Model file not found: {model_path}")
|
23 |
return None
|