Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -168,47 +168,7 @@ def parse_table_to_message(table_data):
|
|
| 168 |
|
| 169 |
# ββ Main Gradio App ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 170 |
def build_app():
|
| 171 |
-
with gr.Blocks(
|
| 172 |
-
title="BERTopic Thematic Analysis Agent",
|
| 173 |
-
theme=gr.themes.Base(
|
| 174 |
-
primary_hue="emerald",
|
| 175 |
-
secondary_hue="slate",
|
| 176 |
-
neutral_hue="slate",
|
| 177 |
-
font=[gr.themes.GoogleFont("IBM Plex Mono"), "monospace"],
|
| 178 |
-
),
|
| 179 |
-
css="""
|
| 180 |
-
body { background: #0a0f1a !important; }
|
| 181 |
-
.gradio-container { max-width: 1400px !important; background: #0a0f1a !important; }
|
| 182 |
-
.section-box {
|
| 183 |
-
border: 1px solid #1e293b;
|
| 184 |
-
border-radius: 16px;
|
| 185 |
-
padding: 20px;
|
| 186 |
-
background: #0f172a;
|
| 187 |
-
margin-bottom: 16px;
|
| 188 |
-
}
|
| 189 |
-
.section-header {
|
| 190 |
-
font-size: 13px;
|
| 191 |
-
font-weight: 700;
|
| 192 |
-
color: #64748b;
|
| 193 |
-
letter-spacing: 0.12em;
|
| 194 |
-
text-transform: uppercase;
|
| 195 |
-
margin-bottom: 12px;
|
| 196 |
-
padding-bottom: 8px;
|
| 197 |
-
border-bottom: 1px solid #1e293b;
|
| 198 |
-
}
|
| 199 |
-
.gr-button-primary {
|
| 200 |
-
background: #10b981 !important;
|
| 201 |
-
border: none !important;
|
| 202 |
-
font-weight: 700 !important;
|
| 203 |
-
}
|
| 204 |
-
.gr-button-secondary {
|
| 205 |
-
background: #1e293b !important;
|
| 206 |
-
border: 1px solid #334155 !important;
|
| 207 |
-
color: #94a3b8 !important;
|
| 208 |
-
}
|
| 209 |
-
footer { display: none !important; }
|
| 210 |
-
""",
|
| 211 |
-
) as app:
|
| 212 |
|
| 213 |
# ββ Header ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 214 |
gr.HTML("""
|
|
@@ -253,9 +213,7 @@ def build_app():
|
|
| 253 |
chatbot = gr.Chatbot(
|
| 254 |
label="Thematic Analysis Agent",
|
| 255 |
height=500,
|
| 256 |
-
bubble_full_width=False,
|
| 257 |
show_copy_button=True,
|
| 258 |
-
render_markdown=True,
|
| 259 |
avatar_images=(None, "https://www.anthropic.com/favicon.ico"),
|
| 260 |
type="messages",
|
| 261 |
)
|
|
@@ -417,4 +375,25 @@ if __name__ == "__main__":
|
|
| 417 |
server_port=7860,
|
| 418 |
ssr_mode=False,
|
| 419 |
share=False,
|
| 420 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 168 |
|
| 169 |
# ββ Main Gradio App ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 170 |
def build_app():
|
| 171 |
+
with gr.Blocks(title="BERTopic Thematic Analysis Agent") as app:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 172 |
|
| 173 |
# ββ Header ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 174 |
gr.HTML("""
|
|
|
|
| 213 |
chatbot = gr.Chatbot(
|
| 214 |
label="Thematic Analysis Agent",
|
| 215 |
height=500,
|
|
|
|
| 216 |
show_copy_button=True,
|
|
|
|
| 217 |
avatar_images=(None, "https://www.anthropic.com/favicon.ico"),
|
| 218 |
type="messages",
|
| 219 |
)
|
|
|
|
| 375 |
server_port=7860,
|
| 376 |
ssr_mode=False,
|
| 377 |
share=False,
|
| 378 |
+
theme=gr.themes.Base(
|
| 379 |
+
primary_hue="emerald",
|
| 380 |
+
secondary_hue="slate",
|
| 381 |
+
neutral_hue="slate",
|
| 382 |
+
font=[gr.themes.GoogleFont("IBM Plex Mono"), "monospace"],
|
| 383 |
+
),
|
| 384 |
+
css="""
|
| 385 |
+
body { background: #0a0f1a !important; }
|
| 386 |
+
.gradio-container { max-width: 1400px !important; background: #0a0f1a !important; }
|
| 387 |
+
.section-header {
|
| 388 |
+
font-size: 13px;
|
| 389 |
+
font-weight: 700;
|
| 390 |
+
color: #64748b;
|
| 391 |
+
letter-spacing: 0.12em;
|
| 392 |
+
text-transform: uppercase;
|
| 393 |
+
margin-bottom: 12px;
|
| 394 |
+
padding-bottom: 8px;
|
| 395 |
+
border-bottom: 1px solid #1e293b;
|
| 396 |
+
}
|
| 397 |
+
footer { display: none !important; }
|
| 398 |
+
""",
|
| 399 |
+
)
|