Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -111,9 +111,10 @@ def get_similar_and_recommend(input_text):
|
|
| 111 |
"weights": video_weights, # Weights for each GNN-based recommendation
|
| 112 |
},
|
| 113 |
"most_similar_video": most_similar_video_features,
|
| 114 |
-
"final_recommendations":
|
| 115 |
}
|
| 116 |
|
|
|
|
| 117 |
return output
|
| 118 |
|
| 119 |
# Create a Streamlit text input widget for entering text and retrieve the most similar video and top 10 recommended videos
|
|
|
|
| 111 |
"weights": video_weights, # Weights for each GNN-based recommendation
|
| 112 |
},
|
| 113 |
"most_similar_video": most_similar_video_features,
|
| 114 |
+
"final_recommendations": top_10_recommended_videos_features # Top 10 recommended videos
|
| 115 |
}
|
| 116 |
|
| 117 |
+
|
| 118 |
return output
|
| 119 |
|
| 120 |
# Create a Streamlit text input widget for entering text and retrieve the most similar video and top 10 recommended videos
|