Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
|
@@ -665,6 +665,7 @@ button.secondary:hover { background:var(--li-blue-light) !important; }
|
|
| 665 |
with gr.Blocks(title="LinkedIn Translator") as demo:
|
| 666 |
|
| 667 |
direction_state = gr.State("to_linkedin")
|
|
|
|
| 668 |
|
| 669 |
gr.HTML("""
|
| 670 |
<div class="li-header">
|
|
@@ -763,8 +764,9 @@ with gr.Blocks(title="LinkedIn Translator") as demo:
|
|
| 763 |
# ββ Leaderboard βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 764 |
with gr.Row():
|
| 765 |
with gr.Column():
|
| 766 |
-
|
| 767 |
-
|
|
|
|
| 768 |
|
| 769 |
# ββ Extras: Meta-Info & Soundtrack ββββββββββββββββββββββββββββββββββββββββ
|
| 770 |
with gr.Row():
|
|
@@ -884,9 +886,9 @@ with gr.Blocks(title="LinkedIn Translator") as demo:
|
|
| 884 |
)
|
| 885 |
|
| 886 |
tuning_toggle_btn.click(
|
| 887 |
-
fn=lambda: gr.update(visible=
|
| 888 |
-
inputs=[],
|
| 889 |
-
outputs=[tuning_panel]
|
| 890 |
)
|
| 891 |
|
| 892 |
# Tuning Button: Aktualisiert Textbox UND Preview
|
|
|
|
| 665 |
with gr.Blocks(title="LinkedIn Translator") as demo:
|
| 666 |
|
| 667 |
direction_state = gr.State("to_linkedin")
|
| 668 |
+
tuning_visible_state = gr.State(False)
|
| 669 |
|
| 670 |
gr.HTML("""
|
| 671 |
<div class="li-header">
|
|
|
|
| 764 |
# ββ Leaderboard βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 765 |
with gr.Row():
|
| 766 |
with gr.Column():
|
| 767 |
+
with gr.Accordion("π Leaderboard", open=True):
|
| 768 |
+
lb_out = gr.HTML(value=_render_leaderboard())
|
| 769 |
+
hidden_sync_btn = gr.Button("sync", elem_id="hidden_sync_btn")
|
| 770 |
|
| 771 |
# ββ Extras: Meta-Info & Soundtrack ββββββββββββββββββββββββββββββββββββββββ
|
| 772 |
with gr.Row():
|
|
|
|
| 886 |
)
|
| 887 |
|
| 888 |
tuning_toggle_btn.click(
|
| 889 |
+
fn=lambda is_vis: (gr.update(visible=not is_vis), not is_vis),
|
| 890 |
+
inputs=[tuning_visible_state],
|
| 891 |
+
outputs=[tuning_panel, tuning_visible_state]
|
| 892 |
)
|
| 893 |
|
| 894 |
# Tuning Button: Aktualisiert Textbox UND Preview
|