NimaKL commited on
Commit
7044d5e
·
verified ·
1 Parent(s): 5a74e2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -35
app.py CHANGED
@@ -967,41 +967,33 @@ def main():
967
  users = recommender.get_all_users()
968
  recommender.close()
969
 
970
- with gr.Blocks(title="Let's Talk - Question Recommender", theme=gr.themes.Default().set(
971
- primary_hue="blue",
972
- primary_50="#8ecae6",
973
- primary_100="#8ecae6",
974
- primary_200="#8ecae6",
975
- primary_300="#219ebc",
976
- primary_400="#219ebc",
977
- primary_500="#219ebc",
978
- primary_600="#023047",
979
- primary_700="#023047",
980
- primary_800="#023047",
981
- primary_900="#023047",
982
- secondary_hue="orange",
983
- secondary_50="#ffb703",
984
- secondary_100="#ffb703",
985
- secondary_200="#ffb703",
986
- secondary_300="#fb8500",
987
- secondary_400="#fb8500",
988
- secondary_500="#fb8500",
989
- secondary_600="#fb8500",
990
- secondary_700="#fb8500",
991
- secondary_800="#fb8500",
992
- secondary_900="#fb8500",
993
- neutral_50="#f9fafc",
994
- neutral_100="#f9fafc",
995
- neutral_200="#e2e8f0",
996
- neutral_300="#cbd5e1",
997
- neutral_400="#94a3b8",
998
- neutral_500="#64748b",
999
- neutral_600="#475569",
1000
- neutral_700="#334155",
1001
- neutral_800="#1e293b",
1002
- neutral_900="#0f172a",
1003
- neutral_950="#020617",
1004
- ), css=custom_css) as iface:
1005
  gr.Markdown("""
1006
  # 🤝 Let's Talk - Question Recommender
1007
  Find questions that two users might be interested in discussing together based on their common interests.
 
967
  users = recommender.get_all_users()
968
  recommender.close()
969
 
970
+ theme = gr.themes.Base().set(
971
+ body_background_fill="#f9fafc",
972
+ block_background_fill="#ffffff",
973
+ block_border_width="1px",
974
+ block_border_color="#219ebc",
975
+ block_title_text_color="#023047",
976
+ block_label_text_color="#333333",
977
+ input_background_fill="#ffffff",
978
+ input_border_color="#219ebc",
979
+ input_border_width="1px",
980
+ button_primary_background_fill="#ffb703",
981
+ button_primary_background_fill_dark="#fb8500",
982
+ button_primary_text_color="#ffffff",
983
+ button_secondary_background_fill="#219ebc",
984
+ button_secondary_text_color="#ffffff",
985
+ background_fill_primary="#ffffff",
986
+ background_fill_secondary="#f9fafc",
987
+ text_color="#333333",
988
+ color_accent_soft="#8ecae6",
989
+ color_accent="#219ebc",
990
+ error_background_fill="#fca5a5",
991
+ error_text_color="#dc2626",
992
+ success_background_fill="#4caf50",
993
+ success_text_color="#ffffff"
994
+ )
995
+
996
+ with gr.Blocks(title="Let's Talk - Question Recommender", theme=theme, css=custom_css) as iface:
 
 
 
 
 
 
 
 
997
  gr.Markdown("""
998
  # 🤝 Let's Talk - Question Recommender
999
  Find questions that two users might be interested in discussing together based on their common interests.