Spaces:
Build error
Build error
seyia92coding
commited on
Commit
•
a96d67f
1
Parent(s):
614e80b
Update app.py
Browse files
app.py
CHANGED
@@ -12,8 +12,8 @@ import numpy as np
|
|
12 |
import scipy as sp
|
13 |
from scipy import sparse
|
14 |
from sklearn.metrics.pairwise import cosine_similarity
|
15 |
-
!pip install fuzzywuzzy
|
16 |
from fuzzywuzzy import fuzz
|
|
|
17 |
|
18 |
meta_df = pd.read_csv("/content/Metacritic_Scores_File.csv", error_bad_lines=False, encoding='utf-8')
|
19 |
meta_df = meta_df[['game', 'reviewer_ID', 'score']]
|
@@ -77,10 +77,6 @@ def game_recommendation(game):
|
|
77 |
print("#" + str(number) + ": " + n + ", " + str(round(game_sim_df[game][n]*100,2)) + "% " + "match")
|
78 |
number +=1
|
79 |
|
80 |
-
!pip install gradio
|
81 |
-
|
82 |
-
import gradio as gr
|
83 |
-
|
84 |
recommender_interface = gr.Interface(game_recommendation, ["text"],
|
85 |
["text"], title="Top 5 Game Recommendations", description="This is a Recommendation Engine based on how Metacritic professional reviewers have scored games up to 2019 (apologies for the out of date data). Simply input a game you have enjoyed playing and it should return 5 games that have been rated similarily")
|
86 |
|
|
|
12 |
import scipy as sp
|
13 |
from scipy import sparse
|
14 |
from sklearn.metrics.pairwise import cosine_similarity
|
|
|
15 |
from fuzzywuzzy import fuzz
|
16 |
+
import gradio as gr
|
17 |
|
18 |
meta_df = pd.read_csv("/content/Metacritic_Scores_File.csv", error_bad_lines=False, encoding='utf-8')
|
19 |
meta_df = meta_df[['game', 'reviewer_ID', 'score']]
|
|
|
77 |
print("#" + str(number) + ": " + n + ", " + str(round(game_sim_df[game][n]*100,2)) + "% " + "match")
|
78 |
number +=1
|
79 |
|
|
|
|
|
|
|
|
|
80 |
recommender_interface = gr.Interface(game_recommendation, ["text"],
|
81 |
["text"], title="Top 5 Game Recommendations", description="This is a Recommendation Engine based on how Metacritic professional reviewers have scored games up to 2019 (apologies for the out of date data). Simply input a game you have enjoyed playing and it should return 5 games that have been rated similarily")
|
82 |
|