Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
| 9 |
def load_data():
|
| 10 |
try:
|
| 11 |
-
|
| 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()
|
|
|
|
|
|