Renamed files
Browse files
app.py
CHANGED
@@ -9,8 +9,8 @@ import gradio as gr
|
|
9 |
from huggingface_hub import from_pretrained_keras
|
10 |
from datasets import load_dataset
|
11 |
|
12 |
-
book_data_load = load_dataset("hqasmei/
|
13 |
-
filtered_data_load = load_dataset("hqasmei/
|
14 |
|
15 |
book_data_arr = []
|
16 |
filtered_data_arr = []
|
@@ -42,7 +42,7 @@ num_books = len(book_encoded2book)
|
|
42 |
filtered_df["rating"] = filtered_df["rating"].values.astype(np.float32)
|
43 |
|
44 |
# Load model
|
45 |
-
model = from_pretrained_keras('hqasmei/
|
46 |
|
47 |
|
48 |
def update_user(id):
|
|
|
9 |
from huggingface_hub import from_pretrained_keras
|
10 |
from datasets import load_dataset
|
11 |
|
12 |
+
book_data_load = load_dataset("hqasmei/collaborative-filtering-dataset", data_files="book_data.csv")
|
13 |
+
filtered_data_load = load_dataset("hqasmei/collaborative-filtering-dataset", data_files="filtered_data.csv")
|
14 |
|
15 |
book_data_arr = []
|
16 |
filtered_data_arr = []
|
|
|
42 |
filtered_df["rating"] = filtered_df["rating"].values.astype(np.float32)
|
43 |
|
44 |
# Load model
|
45 |
+
model = from_pretrained_keras('hqasmei/collaborative-filtering-model')
|
46 |
|
47 |
|
48 |
def update_user(id):
|