ali-kanbar commited on
Commit
96ad974
·
verified ·
1 Parent(s): 5c74044

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -43,7 +43,7 @@ def compare_models(user_input, top_n):
43
  if not matches:
44
  return (f"❌ Could not find movie: '{user_input}'", "", "")
45
  target_title = matches[0]
46
- status = f"⚠️ exact match not found. Showing results for: **{target_title}**"
47
 
48
  # Get Recs from both models
49
  tfidf_recs = get_recommendations(target_title, tfidf_matrix, int(top_n))
@@ -55,7 +55,8 @@ def compare_models(user_input, top_n):
55
  return status, format_list(tfidf_recs), format_list(bert_recs)
56
 
57
  # --- 3. GRADIO INTERFACE ---
58
- with gr.Blocks(theme=gr.themes.Soft()) as demo:
 
59
 
60
  gr.Markdown("# 🎬 Movie Recommender AI Comparison")
61
 
@@ -98,6 +99,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
98
  )
99
 
100
  # Button is now below everything
 
101
  btn = gr.Button("🔍 Get Recommendations", variant="primary", size="lg")
102
 
103
  # Status Message
 
43
  if not matches:
44
  return (f"❌ Could not find movie: '{user_input}'", "", "")
45
  target_title = matches[0]
46
+ status = f"⚠️ Exact match not found. Showing results for: **{target_title}**"
47
 
48
  # Get Recs from both models
49
  tfidf_recs = get_recommendations(target_title, tfidf_matrix, int(top_n))
 
55
  return status, format_list(tfidf_recs), format_list(bert_recs)
56
 
57
  # --- 3. GRADIO INTERFACE ---
58
+ # Removed 'theme=gr.themes.Soft()' to revert to the default Orange/Standard Font
59
+ with gr.Blocks() as demo:
60
 
61
  gr.Markdown("# 🎬 Movie Recommender AI Comparison")
62
 
 
99
  )
100
 
101
  # Button is now below everything
102
+ # Variant="primary" in the default theme is Orange
103
  btn = gr.Button("🔍 Get Recommendations", variant="primary", size="lg")
104
 
105
  # Status Message