ZhouChuYue
commited on
Commit
ยท
1d93c0f
1
Parent(s):
7fd2561
feat: UI overhaul with glassmorphism and modern styling
Browse files
app.py
CHANGED
|
@@ -172,77 +172,174 @@ def textbook_exercise(knowledge_point: str, difficulty: str):
|
|
| 172 |
# ============================================================================
|
| 173 |
|
| 174 |
custom_css = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 175 |
.gradio-container {
|
| 176 |
-
font-family: '
|
| 177 |
-
background:
|
|
|
|
| 178 |
}
|
| 179 |
|
|
|
|
| 180 |
.main-title {
|
| 181 |
-
font-
|
| 182 |
-
font-
|
| 183 |
-
|
|
|
|
| 184 |
-webkit-background-clip: text !important;
|
| 185 |
-webkit-text-fill-color: transparent !important;
|
| 186 |
-
background-clip: text !important;
|
| 187 |
text-align: center !important;
|
|
|
|
|
|
|
| 188 |
}
|
| 189 |
|
| 190 |
.subtitle {
|
| 191 |
text-align: center !important;
|
| 192 |
-
color:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 193 |
font-size: 1rem !important;
|
| 194 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 195 |
}
|
| 196 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 197 |
.gr-button-primary {
|
| 198 |
-
background: linear-gradient(135deg, #
|
| 199 |
border: none !important;
|
|
|
|
| 200 |
font-weight: 600 !important;
|
|
|
|
|
|
|
| 201 |
}
|
| 202 |
|
| 203 |
.gr-button-primary:hover {
|
| 204 |
-
transform: translateY(-
|
| 205 |
-
box-shadow: 0
|
| 206 |
}
|
| 207 |
|
| 208 |
.gr-button-secondary {
|
| 209 |
-
background:
|
| 210 |
-
border:
|
| 211 |
-
color:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 212 |
}
|
| 213 |
|
| 214 |
-
|
| 215 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 216 |
}
|
| 217 |
"""
|
| 218 |
|
| 219 |
-
with gr.Blocks(title="UltraData-Math L3 Generator", css=custom_css) as demo:
|
| 220 |
gr.HTML('<h1 class="main-title">๐งฎ UltraData-Math L3 Generator</h1>')
|
| 221 |
-
gr.HTML('<p class="subtitle"
|
| 222 |
|
| 223 |
with gr.Tabs():
|
| 224 |
# Q&A Synthesis Tab
|
| 225 |
with gr.TabItem("๐ Q&A Synthesis"):
|
| 226 |
-
gr.
|
| 227 |
-
|
| 228 |
-
with gr.
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
|
|
|
|
|
|
|
|
|
| 246 |
|
| 247 |
qa_example_btn.click(
|
| 248 |
lambda: EXAMPLE_MATH_CONTENT,
|
|
@@ -256,25 +353,28 @@ with gr.Blocks(title="UltraData-Math L3 Generator", css=custom_css) as demo:
|
|
| 256 |
|
| 257 |
# Conversation Synthesis Tab
|
| 258 |
with gr.TabItem("๐ฌ Conversation Synthesis"):
|
| 259 |
-
gr.
|
| 260 |
-
|
| 261 |
-
with gr.
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
|
|
|
|
|
|
|
|
|
| 278 |
|
| 279 |
conv_example_btn.click(
|
| 280 |
lambda: EXAMPLE_MATH_CONTENT,
|
|
@@ -288,25 +388,28 @@ with gr.Blocks(title="UltraData-Math L3 Generator", css=custom_css) as demo:
|
|
| 288 |
|
| 289 |
# Rewrite Tab
|
| 290 |
with gr.TabItem("โจ Multi-style Rewrite"):
|
| 291 |
-
gr.
|
| 292 |
-
|
| 293 |
-
with gr.
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
|
|
|
|
|
|
|
|
|
| 310 |
|
| 311 |
rewrite_example_btn.click(
|
| 312 |
lambda: EXAMPLE_MATH_CONTENT,
|
|
@@ -320,20 +423,22 @@ with gr.Blocks(title="UltraData-Math L3 Generator", css=custom_css) as demo:
|
|
| 320 |
|
| 321 |
# Knowledge Extraction Tab
|
| 322 |
with gr.TabItem("๐ Knowledge Extraction"):
|
| 323 |
-
gr.
|
| 324 |
-
|
| 325 |
-
with gr.
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
|
|
|
|
|
|
| 337 |
|
| 338 |
know_example_btn.click(
|
| 339 |
lambda: EXAMPLE_MATH_CONTENT,
|
|
@@ -347,25 +452,28 @@ with gr.Blocks(title="UltraData-Math L3 Generator", css=custom_css) as demo:
|
|
| 347 |
|
| 348 |
# Textbook Exercise Tab
|
| 349 |
with gr.TabItem("๐ Textbook Exercise"):
|
| 350 |
-
gr.
|
| 351 |
-
|
| 352 |
-
with gr.
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
|
|
|
|
|
|
|
|
|
| 369 |
|
| 370 |
textbook_example_btn.click(
|
| 371 |
lambda: EXAMPLE_KNOWLEDGE_POINT,
|
|
@@ -378,9 +486,9 @@ with gr.Blocks(title="UltraData-Math L3 Generator", css=custom_css) as demo:
|
|
| 378 |
)
|
| 379 |
|
| 380 |
gr.HTML("""
|
| 381 |
-
<div
|
| 382 |
<p>๐ฌ <strong>UltraData-Math L3 Generator</strong> - Part of the UltraData-Math Project</p>
|
| 383 |
-
<p>
|
| 384 |
</div>
|
| 385 |
""")
|
| 386 |
|
|
|
|
| 172 |
# ============================================================================
|
| 173 |
|
| 174 |
custom_css = """
|
| 175 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
|
| 176 |
+
|
| 177 |
+
:root {
|
| 178 |
+
--primary-color: #6366f1;
|
| 179 |
+
--secondary-color: #ec4899;
|
| 180 |
+
--background-dark: #0f172a;
|
| 181 |
+
--panel-bg: rgba(30, 41, 59, 0.7);
|
| 182 |
+
--text-light: #f8fafc;
|
| 183 |
+
--text-gray: #94a3b8;
|
| 184 |
+
}
|
| 185 |
+
|
| 186 |
+
body {
|
| 187 |
+
background-color: var(--background-dark);
|
| 188 |
+
color: var(--text-light);
|
| 189 |
+
}
|
| 190 |
+
|
| 191 |
.gradio-container {
|
| 192 |
+
font-family: 'Inter', sans-serif !important;
|
| 193 |
+
background: radial-gradient(circle at top left, #1e1b4b, #0f172a) !important;
|
| 194 |
+
max-width: 1200px !important;
|
| 195 |
}
|
| 196 |
|
| 197 |
+
/* Title & Header */
|
| 198 |
.main-title {
|
| 199 |
+
font-family: 'Inter', sans-serif !important;
|
| 200 |
+
font-weight: 800 !important;
|
| 201 |
+
font-size: 3rem !important;
|
| 202 |
+
background: linear-gradient(to right, #818cf8, #c084fc, #f472b6) !important;
|
| 203 |
-webkit-background-clip: text !important;
|
| 204 |
-webkit-text-fill-color: transparent !important;
|
|
|
|
| 205 |
text-align: center !important;
|
| 206 |
+
margin-bottom: 0.5rem !important;
|
| 207 |
+
letter-spacing: -0.02em !important;
|
| 208 |
}
|
| 209 |
|
| 210 |
.subtitle {
|
| 211 |
text-align: center !important;
|
| 212 |
+
color: var(--text-gray) !important;
|
| 213 |
+
font-size: 1.1rem !important;
|
| 214 |
+
margin-bottom: 3rem !important;
|
| 215 |
+
font-weight: 300 !important;
|
| 216 |
+
}
|
| 217 |
+
|
| 218 |
+
/* Tabs */
|
| 219 |
+
.tabs {
|
| 220 |
+
border: none !important;
|
| 221 |
+
background: transparent !important;
|
| 222 |
+
margin-bottom: 2rem !important;
|
| 223 |
+
}
|
| 224 |
+
|
| 225 |
+
.tab-nav {
|
| 226 |
+
border-bottom: 1px solid rgba(148, 163, 184, 0.2) !important;
|
| 227 |
+
justify-content: center !important;
|
| 228 |
+
}
|
| 229 |
+
|
| 230 |
+
.tab-nav button {
|
| 231 |
+
font-weight: 600 !important;
|
| 232 |
font-size: 1rem !important;
|
| 233 |
+
color: var(--text-gray) !important;
|
| 234 |
+
transition: all 0.3s ease !important;
|
| 235 |
+
}
|
| 236 |
+
|
| 237 |
+
.tab-nav button.selected {
|
| 238 |
+
color: #818cf8 !important;
|
| 239 |
+
border-bottom: 2px solid #818cf8 !important;
|
| 240 |
}
|
| 241 |
|
| 242 |
+
/* Panels & Cards */
|
| 243 |
+
.glass-panel {
|
| 244 |
+
background: var(--panel-bg) !important;
|
| 245 |
+
backdrop-filter: blur(12px) !important;
|
| 246 |
+
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
| 247 |
+
border-radius: 16px !important;
|
| 248 |
+
padding: 24px !important;
|
| 249 |
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
|
| 250 |
+
}
|
| 251 |
+
|
| 252 |
+
/* Inputs */
|
| 253 |
+
textarea, input {
|
| 254 |
+
font-family: 'JetBrains Mono', monospace !important;
|
| 255 |
+
background: rgba(15, 23, 42, 0.6) !important;
|
| 256 |
+
border: 1px solid rgba(148, 163, 184, 0.2) !important;
|
| 257 |
+
color: var(--text-light) !important;
|
| 258 |
+
border-radius: 8px !important;
|
| 259 |
+
transition: border-color 0.2s !important;
|
| 260 |
+
}
|
| 261 |
+
|
| 262 |
+
textarea:focus, input:focus {
|
| 263 |
+
border-color: var(--primary-color) !important;
|
| 264 |
+
box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
|
| 265 |
+
}
|
| 266 |
+
|
| 267 |
+
/* Buttons */
|
| 268 |
.gr-button-primary {
|
| 269 |
+
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
|
| 270 |
border: none !important;
|
| 271 |
+
color: white !important;
|
| 272 |
font-weight: 600 !important;
|
| 273 |
+
border-radius: 8px !important;
|
| 274 |
+
transition: transform 0.2s, box-shadow 0.2s !important;
|
| 275 |
}
|
| 276 |
|
| 277 |
.gr-button-primary:hover {
|
| 278 |
+
transform: translateY(-1px) !important;
|
| 279 |
+
box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3) !important;
|
| 280 |
}
|
| 281 |
|
| 282 |
.gr-button-secondary {
|
| 283 |
+
background: rgba(30, 41, 59, 0.8) !important;
|
| 284 |
+
border: 1px solid rgba(148, 163, 184, 0.3) !important;
|
| 285 |
+
color: var(--text-gray) !important;
|
| 286 |
+
border-radius: 8px !important;
|
| 287 |
+
}
|
| 288 |
+
|
| 289 |
+
.gr-button-secondary:hover {
|
| 290 |
+
background: rgba(51, 65, 85, 0.8) !important;
|
| 291 |
+
color: var(--text-light) !important;
|
| 292 |
+
}
|
| 293 |
+
|
| 294 |
+
/* Labels */
|
| 295 |
+
label span {
|
| 296 |
+
color: #cbd5e1 !important;
|
| 297 |
+
font-weight: 500 !important;
|
| 298 |
+
font-size: 0.9rem !important;
|
| 299 |
+
margin-bottom: 0.5rem !important;
|
| 300 |
}
|
| 301 |
|
| 302 |
+
/* Footer */
|
| 303 |
+
.footer-text {
|
| 304 |
+
text-align: center;
|
| 305 |
+
margin-top: 4rem;
|
| 306 |
+
padding: 2rem;
|
| 307 |
+
color: var(--text-gray);
|
| 308 |
+
font-size: 0.9rem;
|
| 309 |
+
border-top: 1px solid rgba(148, 163, 184, 0.1);
|
| 310 |
}
|
| 311 |
"""
|
| 312 |
|
| 313 |
+
with gr.Blocks(title="UltraData-Math L3 Generator", css=custom_css, theme=gr.themes.Soft()) as demo:
|
| 314 |
gr.HTML('<h1 class="main-title">๐งฎ UltraData-Math L3 Generator</h1>')
|
| 315 |
+
gr.HTML('<p class="subtitle">โจ Next-Gen Mathematical Data Synthesis Powered by LLM โจ</p>')
|
| 316 |
|
| 317 |
with gr.Tabs():
|
| 318 |
# Q&A Synthesis Tab
|
| 319 |
with gr.TabItem("๐ Q&A Synthesis"):
|
| 320 |
+
with gr.Column(elem_classes=["glass-panel"]):
|
| 321 |
+
gr.Markdown("### ๐ก Transform Text into Q&A Pairs\nGenerate high-quality question-answer pairs from mathematical content, tailored to different educational levels.")
|
| 322 |
+
with gr.Row():
|
| 323 |
+
with gr.Column(scale=1):
|
| 324 |
+
qa_input = gr.Textbox(
|
| 325 |
+
label="Input Mathematical Content",
|
| 326 |
+
placeholder="Paste your mathematical text here (e.g., definitions, theorems, proofs)...",
|
| 327 |
+
lines=10,
|
| 328 |
+
)
|
| 329 |
+
qa_level = gr.Radio(
|
| 330 |
+
choices=list(QA_PROMPTS.keys()),
|
| 331 |
+
value="high_school",
|
| 332 |
+
label="Difficulty Level",
|
| 333 |
+
info="Select the target audience level"
|
| 334 |
+
)
|
| 335 |
+
with gr.Row():
|
| 336 |
+
qa_example_btn = gr.Button("๐ Load Example", variant="secondary")
|
| 337 |
+
qa_btn = gr.Button("๐ Generate Q&A", variant="primary")
|
| 338 |
+
|
| 339 |
+
with gr.Column(scale=1):
|
| 340 |
+
qa_problem = gr.Textbox(label="Generated Problem", lines=5, show_copy_button=True)
|
| 341 |
+
qa_solution = gr.Textbox(label="Generated Solution", lines=12, show_copy_button=True)
|
| 342 |
+
qa_raw = gr.Textbox(label="Raw Response", lines=4, visible=False)
|
| 343 |
|
| 344 |
qa_example_btn.click(
|
| 345 |
lambda: EXAMPLE_MATH_CONTENT,
|
|
|
|
| 353 |
|
| 354 |
# Conversation Synthesis Tab
|
| 355 |
with gr.TabItem("๐ฌ Conversation Synthesis"):
|
| 356 |
+
with gr.Column(elem_classes=["glass-panel"]):
|
| 357 |
+
gr.Markdown("### ๐ฃ๏ธ Create Multi-turn Dialogues\nConvert static mathematical text into dynamic, engaging multi-turn conversations between students and teachers.")
|
| 358 |
+
with gr.Row():
|
| 359 |
+
with gr.Column(scale=1):
|
| 360 |
+
conv_input = gr.Textbox(
|
| 361 |
+
label="Input Mathematical Content",
|
| 362 |
+
placeholder="Paste your mathematical text here...",
|
| 363 |
+
lines=10,
|
| 364 |
+
)
|
| 365 |
+
conv_style = gr.Radio(
|
| 366 |
+
choices=list(CONVERSATION_PROMPTS.keys()),
|
| 367 |
+
value="teacher_student",
|
| 368 |
+
label="Conversation Style",
|
| 369 |
+
info="Choose the persona and tone of the conversation"
|
| 370 |
+
)
|
| 371 |
+
with gr.Row():
|
| 372 |
+
conv_example_btn = gr.Button("๐ Load Example", variant="secondary")
|
| 373 |
+
conv_btn = gr.Button("๐ Generate Conversation", variant="primary")
|
| 374 |
+
|
| 375 |
+
with gr.Column(scale=1):
|
| 376 |
+
conv_output = gr.Textbox(label="Generated Conversation", lines=20, show_copy_button=True)
|
| 377 |
+
conv_raw = gr.Textbox(label="Raw Response", lines=4, visible=False)
|
| 378 |
|
| 379 |
conv_example_btn.click(
|
| 380 |
lambda: EXAMPLE_MATH_CONTENT,
|
|
|
|
| 388 |
|
| 389 |
# Rewrite Tab
|
| 390 |
with gr.TabItem("โจ Multi-style Rewrite"):
|
| 391 |
+
with gr.Column(elem_classes=["glass-panel"]):
|
| 392 |
+
gr.Markdown("### ๐จ Style Transfer\nRewrite mathematical content into various styles, from rigorous textbooks to engaging blog posts.")
|
| 393 |
+
with gr.Row():
|
| 394 |
+
with gr.Column(scale=1):
|
| 395 |
+
rewrite_input = gr.Textbox(
|
| 396 |
+
label="Input Mathematical Content",
|
| 397 |
+
placeholder="Paste your mathematical text here...",
|
| 398 |
+
lines=10,
|
| 399 |
+
)
|
| 400 |
+
rewrite_style = gr.Radio(
|
| 401 |
+
choices=list(MULTISTYLE_PROMPTS.keys()),
|
| 402 |
+
value="textbook",
|
| 403 |
+
label="Target Style",
|
| 404 |
+
info="Select the desired output style"
|
| 405 |
+
)
|
| 406 |
+
with gr.Row():
|
| 407 |
+
rewrite_example_btn = gr.Button("๐ Load Example", variant="secondary")
|
| 408 |
+
rewrite_btn = gr.Button("๐ Rewrite Content", variant="primary")
|
| 409 |
+
|
| 410 |
+
with gr.Column(scale=1):
|
| 411 |
+
rewrite_output = gr.Textbox(label="Rewritten Content", lines=20, show_copy_button=True)
|
| 412 |
+
rewrite_raw = gr.Textbox(label="Raw Response", lines=4, visible=False)
|
| 413 |
|
| 414 |
rewrite_example_btn.click(
|
| 415 |
lambda: EXAMPLE_MATH_CONTENT,
|
|
|
|
| 423 |
|
| 424 |
# Knowledge Extraction Tab
|
| 425 |
with gr.TabItem("๐ Knowledge Extraction"):
|
| 426 |
+
with gr.Column(elem_classes=["glass-panel"]):
|
| 427 |
+
gr.Markdown("### ๐ง Extract Core Knowledge\nAutomatically identify and extract key definitions, theorems, and properties from unstructured text.")
|
| 428 |
+
with gr.Row():
|
| 429 |
+
with gr.Column(scale=1):
|
| 430 |
+
know_input = gr.Textbox(
|
| 431 |
+
label="Input Mathematical Content",
|
| 432 |
+
placeholder="Paste your mathematical text here...",
|
| 433 |
+
lines=12,
|
| 434 |
+
)
|
| 435 |
+
with gr.Row():
|
| 436 |
+
know_example_btn = gr.Button("๐ Load Example", variant="secondary")
|
| 437 |
+
know_btn = gr.Button("๐ Extract Knowledge", variant="primary")
|
| 438 |
+
|
| 439 |
+
with gr.Column(scale=1):
|
| 440 |
+
know_output = gr.Textbox(label="Extracted Knowledge Points", lines=20, show_copy_button=True)
|
| 441 |
+
know_raw = gr.Textbox(label="Raw Response", lines=4, visible=False)
|
| 442 |
|
| 443 |
know_example_btn.click(
|
| 444 |
lambda: EXAMPLE_MATH_CONTENT,
|
|
|
|
| 452 |
|
| 453 |
# Textbook Exercise Tab
|
| 454 |
with gr.TabItem("๐ Textbook Exercise"):
|
| 455 |
+
with gr.Column(elem_classes=["glass-panel"]):
|
| 456 |
+
gr.Markdown("### ๐ Generate Exercises\nCreate comprehensive textbook-style exercises and problems based on specific knowledge points.")
|
| 457 |
+
with gr.Row():
|
| 458 |
+
with gr.Column(scale=1):
|
| 459 |
+
textbook_input = gr.Textbox(
|
| 460 |
+
label="Input Knowledge Point",
|
| 461 |
+
placeholder="Enter a specific mathematical concept or theorem...",
|
| 462 |
+
lines=8,
|
| 463 |
+
)
|
| 464 |
+
textbook_diff = gr.Radio(
|
| 465 |
+
choices=list(TEXTBOOK_EXERCISE_PROMPTS.keys()),
|
| 466 |
+
value="easy",
|
| 467 |
+
label="Difficulty",
|
| 468 |
+
info="Select the problem difficulty"
|
| 469 |
+
)
|
| 470 |
+
with gr.Row():
|
| 471 |
+
textbook_example_btn = gr.Button("๐ Load Example", variant="secondary")
|
| 472 |
+
textbook_btn = gr.Button("๐ Generate Exercise", variant="primary")
|
| 473 |
+
|
| 474 |
+
with gr.Column(scale=1):
|
| 475 |
+
textbook_output = gr.Textbox(label="Generated Exercise Material", lines=20, show_copy_button=True)
|
| 476 |
+
textbook_raw = gr.Textbox(label="Raw Response", lines=4, visible=False)
|
| 477 |
|
| 478 |
textbook_example_btn.click(
|
| 479 |
lambda: EXAMPLE_KNOWLEDGE_POINT,
|
|
|
|
| 486 |
)
|
| 487 |
|
| 488 |
gr.HTML("""
|
| 489 |
+
<div class="footer-text">
|
| 490 |
<p>๐ฌ <strong>UltraData-Math L3 Generator</strong> - Part of the UltraData-Math Project</p>
|
| 491 |
+
<p>Powered by OpenBMB & ModelBest โข <a href="https://huggingface.co/spaces/openbmb/UltraData-Math-L3-Generator" target="_blank" style="color: #818cf8; text-decoration: none;">View on Hugging Face</a></p>
|
| 492 |
</div>
|
| 493 |
""")
|
| 494 |
|