Skip to content

Commit 89d2fd6

Browse files
authored
Fixed 'user_review' issue in streamlit_app.py
1 parent 11fe586 commit 89d2fd6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Web_app/streamlit_app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def load_data(file):
3131
review_column = None
3232
if 'review' in reviews_df.columns:
3333
review_column = 'review'
34-
elif 'user-review' in reviews_df.columns:
35-
review_column = 'user-review'
34+
elif 'user_review' in reviews_df.columns:
35+
review_column = 'user_review'
3636

3737
if review_column:
3838
st.write("Sentiment Analysis:")
@@ -46,6 +46,6 @@ def load_data(file):
4646
recommendations = recommend_movies(analyzed_df)
4747
st.write(recommendations)
4848
else:
49-
st.error("The uploaded CSV file does not contain a 'review' or 'user-review' column.")
49+
st.error("The uploaded CSV file does not contain a 'review' or 'user_review' column.")
5050
else:
5151
st.write("Please upload a CSV file to proceed.")

0 commit comments

Comments
 (0)