Tanishka14 commited on
Commit
8ed4ea2
·
1 Parent(s): ccfbd4f

Update content_based and collaborative: fix inplace warnings, remove launch()

Browse files
Files changed (1) hide show
  1. collaborative.py +1 -9
collaborative.py CHANGED
@@ -406,15 +406,7 @@ def collaborative_ui(user_id):
406
  # --- STEP 7: Launch Gradio Interface ---
407
  user_id_list = sorted(user_item_matrix.index.tolist())
408
 
409
- demo = gr.Interface(
410
- fn=collaborative_ui,
411
- inputs=gr.Dropdown(choices=user_id_list, label="Select User ID"),
412
- outputs=gr.HTML(label="Collaborative Recommendations"),
413
- title="👥 Collaborative Filtering Recommender",
414
- description="Choose a user to get product recommendations based on user similarity (Collaborative Filtering)."
415
- )
416
-
417
- demo.launch()
418
 
419
 
420
  # In[ ]:
 
406
  # --- STEP 7: Launch Gradio Interface ---
407
  user_id_list = sorted(user_item_matrix.index.tolist())
408
 
409
+
 
 
 
 
 
 
 
 
410
 
411
 
412
  # In[ ]: