VJyzCELERY
commited on
Commit
·
35fede9
1
Parent(s):
b4422df
Changed ids into string
Browse files
app.py
CHANGED
|
@@ -71,8 +71,11 @@ selectable_app_ids = list(model.collaborative_recommender.item_to_index.keys())
|
|
| 71 |
# df_user_pref = pd.read_csv(USER_PREFERENCE_DATAPATH,index_col=False)
|
| 72 |
|
| 73 |
df_games = GAMES_DS['train'].to_pandas()
|
|
|
|
| 74 |
df_games_raw = RAW_GAMES_DS['train'].to_pandas()
|
| 75 |
df_review_raw = REVIEWS_DS['train'].to_pandas()
|
|
|
|
|
|
|
| 76 |
df_review_trimmed = TRIMMED_REVIEWS_DS['train'].to_pandas()
|
| 77 |
df_user_pref = USER_PREF_DS['train'].to_pandas()
|
| 78 |
available_names = df_games[df_games['app_id'].astype(str).isin(selectable_app_ids)]['Name'].tolist()
|
|
@@ -256,6 +259,7 @@ With that, we wanted to try and make a game recommendation based on description
|
|
| 256 |
key="reviews"
|
| 257 |
)
|
| 258 |
h2(f'Shape : {df_review_raw.shape}')
|
|
|
|
| 259 |
|
| 260 |
# eda section
|
| 261 |
with gr.Column(elem_id="eda", elem_classes="content-section", visible=False) as eda_section:
|
|
|
|
| 71 |
# df_user_pref = pd.read_csv(USER_PREFERENCE_DATAPATH,index_col=False)
|
| 72 |
|
| 73 |
df_games = GAMES_DS['train'].to_pandas()
|
| 74 |
+
df_games['AppID'] = df_games['AppID'].astype(str)
|
| 75 |
df_games_raw = RAW_GAMES_DS['train'].to_pandas()
|
| 76 |
df_review_raw = REVIEWS_DS['train'].to_pandas()
|
| 77 |
+
df_review_raw['app_id'] = df_review_raw['app_id'].astype(str)
|
| 78 |
+
df_review_raw['steamid'] = df_review_raw['steamid'].astype(str)
|
| 79 |
df_review_trimmed = TRIMMED_REVIEWS_DS['train'].to_pandas()
|
| 80 |
df_user_pref = USER_PREF_DS['train'].to_pandas()
|
| 81 |
available_names = df_games[df_games['app_id'].astype(str).isin(selectable_app_ids)]['Name'].tolist()
|
|
|
|
| 259 |
key="reviews"
|
| 260 |
)
|
| 261 |
h2(f'Shape : {df_review_raw.shape}')
|
| 262 |
+
|
| 263 |
|
| 264 |
# eda section
|
| 265 |
with gr.Column(elem_id="eda", elem_classes="content-section", visible=False) as eda_section:
|