File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ def load_data(file):
31
31
review_column = None
32
32
if 'review' in reviews_df .columns :
33
33
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 '
36
36
37
37
if review_column :
38
38
st .write ("Sentiment Analysis:" )
@@ -46,6 +46,6 @@ def load_data(file):
46
46
recommendations = recommend_movies (analyzed_df )
47
47
st .write (recommendations )
48
48
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." )
50
50
else :
51
51
st .write ("Please upload a CSV file to proceed." )
You can’t perform that action at this time.
0 commit comments