Bnava13 commited on
Commit
2b50b7d
·
verified ·
1 Parent(s): eb97dbf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -5,11 +5,10 @@ from sklearn.metrics.pairwise import cosine_similarity
5
  import gradio as gr
6
  import numpy as np
7
 
8
- # Load the data - when deploying, adjust the path to where your dataset will be stored
9
  def load_data():
10
  try:
11
- # For Hugging Face Spaces deployment, you might need to adjust this path
12
- data = pd.read_csv('games_march2025_cleaned.csv', nrows=50000, on_bad_lines='skip', engine='python')
13
  return data
14
  except Exception as e:
15
  print(f"Error loading data: {e}")
@@ -142,6 +141,4 @@ with gr.Blocks(title="Steam Game Recommender") as demo:
142
 
143
  # Launch the app
144
  if __name__ == "__main__":
145
- demo.launch()
146
-
147
-
 
5
  import gradio as gr
6
  import numpy as np
7
 
8
+ # Load the data
9
  def load_data():
10
  try:
11
+ data = pd.read_csv('games_march2025_cleaned.csv', nrows=20000, on_bad_lines='skip', engine='python')
 
12
  return data
13
  except Exception as e:
14
  print(f"Error loading data: {e}")
 
141
 
142
  # Launch the app
143
  if __name__ == "__main__":
144
+ demo.launch()