Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ data = dataset['train'] # Accessing the 'train' split of the dataset
|
|
15 |
|
16 |
# Convert the dataset to a list of dictionaries for easier indexing
|
17 |
data_list = list[data]
|
18 |
-
|
19 |
# Combine description and genre for embedding
|
20 |
def combine_description_title_and_genre(description, listed_in, title):
|
21 |
return f"{description} Genre: {listed_in} Title: {title}"
|
@@ -55,7 +55,7 @@ def movie_search(query):
|
|
55 |
return vector_search(query)
|
56 |
|
57 |
iface = gr.Interface(fn=movie_search,
|
58 |
-
inputs="
|
59 |
outputs="text",
|
60 |
live=True,
|
61 |
title="Netflix Recommendation System",
|
|
|
15 |
|
16 |
# Convert the dataset to a list of dictionaries for easier indexing
|
17 |
data_list = list[data]
|
18 |
+
print(data_list)
|
19 |
# Combine description and genre for embedding
|
20 |
def combine_description_title_and_genre(description, listed_in, title):
|
21 |
return f"{description} Genre: {listed_in} Title: {title}"
|
|
|
55 |
return vector_search(query)
|
56 |
|
57 |
iface = gr.Interface(fn=movie_search,
|
58 |
+
inputs=gr.inputs.Textbox(label="Enter your query"),
|
59 |
outputs="text",
|
60 |
live=True,
|
61 |
title="Netflix Recommendation System",
|