Update app.py
Browse files
app.py
CHANGED
|
@@ -803,19 +803,6 @@ def recommend_questions(user1: str, user2: str) -> Tuple[str, str, str, List[Dic
|
|
| 803 |
|
| 804 |
# Custom CSS for better styling
|
| 805 |
custom_css = """
|
| 806 |
-
/* Force light mode */
|
| 807 |
-
:root {
|
| 808 |
-
color-scheme: light !important;
|
| 809 |
-
}
|
| 810 |
-
|
| 811 |
-
[data-theme="dark"] {
|
| 812 |
-
display: none !important;
|
| 813 |
-
}
|
| 814 |
-
|
| 815 |
-
.dark {
|
| 816 |
-
display: none !important;
|
| 817 |
-
}
|
| 818 |
-
|
| 819 |
.gradio-container {
|
| 820 |
max-width: 1200px !important;
|
| 821 |
margin: auto !important;
|
|
@@ -1106,35 +1093,14 @@ def main():
|
|
| 1106 |
button_primary_background_fill="#ffb703",
|
| 1107 |
button_secondary_background_fill="#219ebc",
|
| 1108 |
background_fill_primary="#ffffff",
|
| 1109 |
-
background_fill_secondary="#f9fafc"
|
| 1110 |
-
# Force light mode colors
|
| 1111 |
-
shadow_spread="1px",
|
| 1112 |
-
shadow_inset="0px",
|
| 1113 |
-
# Text colors
|
| 1114 |
-
text_color="#333333",
|
| 1115 |
-
text_color_subdued="#666666",
|
| 1116 |
-
body_text_color="#333333",
|
| 1117 |
-
background_fill_secondary_dark="#f9fafc",
|
| 1118 |
-
block_background_fill_dark="#ffffff",
|
| 1119 |
-
input_background_fill_dark="#ffffff",
|
| 1120 |
-
checkbox_background_color="#ffffff",
|
| 1121 |
-
checkbox_background_color_dark="#ffffff",
|
| 1122 |
-
checkbox_border_color="#219ebc",
|
| 1123 |
-
checkbox_border_color_dark="#219ebc",
|
| 1124 |
-
checkbox_label_background_fill="#ffffff",
|
| 1125 |
-
checkbox_label_background_fill_dark="#ffffff",
|
| 1126 |
-
checkbox_label_text_color="#333333",
|
| 1127 |
-
checkbox_label_text_color_dark="#333333"
|
| 1128 |
)
|
| 1129 |
|
| 1130 |
-
with gr.Blocks(title="Let's Talk - Question Recommender",
|
| 1131 |
-
theme=theme,
|
| 1132 |
-
css=custom_css,
|
| 1133 |
-
mode="light") as iface: # Force light mode
|
| 1134 |
gr.Markdown("""
|
| 1135 |
# 🤝 Let's Talk - Question Recommender
|
| 1136 |
Find questions that two users might be interested in discussing together based on their common interests.
|
| 1137 |
-
|
| 1138 |
|
| 1139 |
with gr.Row(equal_height=True):
|
| 1140 |
with gr.Column(scale=1):
|
|
@@ -1181,8 +1147,8 @@ def main():
|
|
| 1181 |
)
|
| 1182 |
|
| 1183 |
iface.launch(allowed_paths=["*"],
|
| 1184 |
-
|
| 1185 |
-
|
| 1186 |
|
| 1187 |
if __name__ == "__main__":
|
| 1188 |
main()
|
|
|
|
| 803 |
|
| 804 |
# Custom CSS for better styling
|
| 805 |
custom_css = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 806 |
.gradio-container {
|
| 807 |
max-width: 1200px !important;
|
| 808 |
margin: auto !important;
|
|
|
|
| 1093 |
button_primary_background_fill="#ffb703",
|
| 1094 |
button_secondary_background_fill="#219ebc",
|
| 1095 |
background_fill_primary="#ffffff",
|
| 1096 |
+
background_fill_secondary="#f9fafc"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1097 |
)
|
| 1098 |
|
| 1099 |
+
with gr.Blocks(title="Let's Talk - Question Recommender", theme=theme, css=custom_css, mode="light") as iface:
|
|
|
|
|
|
|
|
|
|
| 1100 |
gr.Markdown("""
|
| 1101 |
# 🤝 Let's Talk - Question Recommender
|
| 1102 |
Find questions that two users might be interested in discussing together based on their common interests.
|
| 1103 |
+
""")
|
| 1104 |
|
| 1105 |
with gr.Row(equal_height=True):
|
| 1106 |
with gr.Column(scale=1):
|
|
|
|
| 1147 |
)
|
| 1148 |
|
| 1149 |
iface.launch(allowed_paths=["*"],
|
| 1150 |
+
show_error=True,
|
| 1151 |
+
dark_mode=False)
|
| 1152 |
|
| 1153 |
if __name__ == "__main__":
|
| 1154 |
main()
|