ZhouChuYue
commited on
Commit
ยท
2b6793d
1
Parent(s):
2f9bb62
fix: unify example buttons, set button text white, simplify tab selected style
Browse files
app.py
CHANGED
|
@@ -333,14 +333,14 @@ ul.options, .gr-dropdown-options {
|
|
| 333 |
}
|
| 334 |
|
| 335 |
.gr-button-secondary {
|
| 336 |
-
background: #
|
| 337 |
-
border: 1px solid #
|
| 338 |
-
color: #
|
| 339 |
box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08) !important;
|
| 340 |
}
|
| 341 |
.gr-button-secondary:hover {
|
| 342 |
-
background: #
|
| 343 |
-
border-color: #
|
| 344 |
}
|
| 345 |
|
| 346 |
/* Tabs */
|
|
@@ -352,8 +352,9 @@ ul.options, .gr-dropdown-options {
|
|
| 352 |
.tabs button.selected {
|
| 353 |
color: #ffffff !important;
|
| 354 |
background: var(--accent) !important;
|
| 355 |
-
border-radius:
|
| 356 |
padding: 4px 10px !important;
|
|
|
|
| 357 |
}
|
| 358 |
|
| 359 |
/* Radio buttons */
|
|
@@ -406,7 +407,7 @@ with gr.Blocks(title="UltraData-Math L3 Generator", css=custom_css, theme=gr.the
|
|
| 406 |
info="Select the target audience level"
|
| 407 |
)
|
| 408 |
with gr.Row():
|
| 409 |
-
qa_example_btn = gr.Button("
|
| 410 |
qa_btn = gr.Button("๐ Generate Q&A", variant="primary")
|
| 411 |
|
| 412 |
with gr.Column(scale=1):
|
|
@@ -442,7 +443,7 @@ with gr.Blocks(title="UltraData-Math L3 Generator", css=custom_css, theme=gr.the
|
|
| 442 |
info="Choose the persona and tone of the conversation"
|
| 443 |
)
|
| 444 |
with gr.Row():
|
| 445 |
-
conv_example_btn = gr.Button("
|
| 446 |
conv_btn = gr.Button("๐ Generate Conversation", variant="primary")
|
| 447 |
|
| 448 |
with gr.Column(scale=1):
|
|
@@ -477,7 +478,7 @@ with gr.Blocks(title="UltraData-Math L3 Generator", css=custom_css, theme=gr.the
|
|
| 477 |
info="Select the desired output style"
|
| 478 |
)
|
| 479 |
with gr.Row():
|
| 480 |
-
rewrite_example_btn = gr.Button("
|
| 481 |
rewrite_btn = gr.Button("๐ Rewrite Content", variant="primary")
|
| 482 |
|
| 483 |
with gr.Column(scale=1):
|
|
@@ -506,7 +507,7 @@ with gr.Blocks(title="UltraData-Math L3 Generator", css=custom_css, theme=gr.the
|
|
| 506 |
lines=12,
|
| 507 |
)
|
| 508 |
with gr.Row():
|
| 509 |
-
know_example_btn = gr.Button("
|
| 510 |
know_btn = gr.Button("๐ Extract Knowledge", variant="primary")
|
| 511 |
|
| 512 |
with gr.Column(scale=1):
|
|
@@ -541,7 +542,7 @@ with gr.Blocks(title="UltraData-Math L3 Generator", css=custom_css, theme=gr.the
|
|
| 541 |
info="Select the problem difficulty"
|
| 542 |
)
|
| 543 |
with gr.Row():
|
| 544 |
-
textbook_example_btn = gr.Button("
|
| 545 |
textbook_btn = gr.Button("๐ Generate Exercise", variant="primary")
|
| 546 |
|
| 547 |
with gr.Column(scale=1):
|
|
|
|
| 333 |
}
|
| 334 |
|
| 335 |
.gr-button-secondary {
|
| 336 |
+
background: #64748b !important;
|
| 337 |
+
border: 1px solid #64748b !important;
|
| 338 |
+
color: #ffffff !important;
|
| 339 |
box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08) !important;
|
| 340 |
}
|
| 341 |
.gr-button-secondary:hover {
|
| 342 |
+
background: #475569 !important;
|
| 343 |
+
border-color: #475569 !important;
|
| 344 |
}
|
| 345 |
|
| 346 |
/* Tabs */
|
|
|
|
| 352 |
.tabs button.selected {
|
| 353 |
color: #ffffff !important;
|
| 354 |
background: var(--accent) !important;
|
| 355 |
+
border-radius: 0 !important;
|
| 356 |
padding: 4px 10px !important;
|
| 357 |
+
border-bottom: none !important;
|
| 358 |
}
|
| 359 |
|
| 360 |
/* Radio buttons */
|
|
|
|
| 407 |
info="Select the target audience level"
|
| 408 |
)
|
| 409 |
with gr.Row():
|
| 410 |
+
qa_example_btn = gr.Button("Generate", variant="secondary")
|
| 411 |
qa_btn = gr.Button("๐ Generate Q&A", variant="primary")
|
| 412 |
|
| 413 |
with gr.Column(scale=1):
|
|
|
|
| 443 |
info="Choose the persona and tone of the conversation"
|
| 444 |
)
|
| 445 |
with gr.Row():
|
| 446 |
+
conv_example_btn = gr.Button("Generate", variant="secondary")
|
| 447 |
conv_btn = gr.Button("๐ Generate Conversation", variant="primary")
|
| 448 |
|
| 449 |
with gr.Column(scale=1):
|
|
|
|
| 478 |
info="Select the desired output style"
|
| 479 |
)
|
| 480 |
with gr.Row():
|
| 481 |
+
rewrite_example_btn = gr.Button("Generate", variant="secondary")
|
| 482 |
rewrite_btn = gr.Button("๐ Rewrite Content", variant="primary")
|
| 483 |
|
| 484 |
with gr.Column(scale=1):
|
|
|
|
| 507 |
lines=12,
|
| 508 |
)
|
| 509 |
with gr.Row():
|
| 510 |
+
know_example_btn = gr.Button("Generate", variant="secondary")
|
| 511 |
know_btn = gr.Button("๐ Extract Knowledge", variant="primary")
|
| 512 |
|
| 513 |
with gr.Column(scale=1):
|
|
|
|
| 542 |
info="Select the problem difficulty"
|
| 543 |
)
|
| 544 |
with gr.Row():
|
| 545 |
+
textbook_example_btn = gr.Button("Generate", variant="secondary")
|
| 546 |
textbook_btn = gr.Button("๐ Generate Exercise", variant="primary")
|
| 547 |
|
| 548 |
with gr.Column(scale=1):
|