prince4332 commited on
Commit
c88e583
·
verified ·
1 Parent(s): e356b06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -376,8 +376,8 @@ with gr.Blocks(title="Movie Recommendation System") as demo:
376
  allow_custom_value=True,
377
  interactive=True
378
  )
379
- search_btn = gr.Button("➕ Add to History", variant="primary", scale=0)
380
- clear_btn = gr.Button("🔄 Show All", variant="secondary", scale=0)
381
  reset_btn = gr.Button("↺ Reset History", variant="secondary", scale=0)
382
 
383
  with gr.Row():
@@ -415,18 +415,18 @@ with gr.Blocks(title="Movie Recommendation System") as demo:
415
  )
416
 
417
  # Search functionality
418
- search_btn.click(
419
- fn=update_recommendations,
420
- inputs=[search_box],
421
- outputs=[user_history_table, similar_users_table, recommended_movies_table, status_text]
422
- )
423
 
424
  # Clear filter functionality
425
- clear_btn.click(
426
- fn=lambda: update_recommendations(None),
427
- inputs=[],
428
- outputs=[user_history_table, similar_users_table, recommended_movies_table, status_text]
429
- )
430
 
431
  # Reset history functionality
432
  reset_btn.click(
 
376
  allow_custom_value=True,
377
  interactive=True
378
  )
379
+ # search_btn = gr.Button("➕ Add to History", variant="primary", scale=0)
380
+ #clear_btn = gr.Button("🔄 Show All", variant="secondary", scale=0)
381
  reset_btn = gr.Button("↺ Reset History", variant="secondary", scale=0)
382
 
383
  with gr.Row():
 
415
  )
416
 
417
  # Search functionality
418
+ #search_btn.click(
419
+ # fn=update_recommendations,
420
+ # inputs=[search_box],
421
+ # outputs=[user_history_table, similar_users_table, recommended_movies_table, status_text]
422
+ #)
423
 
424
  # Clear filter functionality
425
+ # clear_btn.click(
426
+ # fn=lambda: update_recommendations(None),
427
+ # inputs=[],
428
+ # outputs=[user_history_table, similar_users_table, recommended_movies_table, status_text]
429
+ #)
430
 
431
  # Reset history functionality
432
  reset_btn.click(