Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,13 +45,15 @@ def recommend_games(user_game_name_input):
|
|
| 45 |
reverse=True
|
| 46 |
)
|
| 47 |
|
|
|
|
|
|
|
| 48 |
for i, (index, score) in enumerate(sorted_similar_games[1:21]):
|
| 49 |
-
|
| 50 |
-
|
| 51 |
game_name = data.iloc[index]['name']
|
| 52 |
|
| 53 |
# Get OS support info
|
| 54 |
-
platforms = data.iloc[index].get('
|
| 55 |
os_icons = []
|
| 56 |
if 'windows' in platforms:
|
| 57 |
os_icons.append("🪟")
|
|
|
|
| 45 |
reverse=True
|
| 46 |
)
|
| 47 |
|
| 48 |
+
recommendations = []
|
| 49 |
+
chart_data = []
|
| 50 |
for i, (index, score) in enumerate(sorted_similar_games[1:21]):
|
| 51 |
+
if score < 0.3:
|
| 52 |
+
continue
|
| 53 |
game_name = data.iloc[index]['name']
|
| 54 |
|
| 55 |
# Get OS support info
|
| 56 |
+
platforms = data.iloc[index].get('platform', '').lower()
|
| 57 |
os_icons = []
|
| 58 |
if 'windows' in platforms:
|
| 59 |
os_icons.append("🪟")
|