Commit
·
791a4a1
1
Parent(s):
b06a781
fix hidden success message during push
Browse files
src/synthetic_dataset_generator/app.py
CHANGED
@@ -25,7 +25,6 @@ demo = TabbedInterface(
|
|
25 |
["Text Classification", "Supervised Fine-Tuning", "README"],
|
26 |
css=css,
|
27 |
title=image,
|
28 |
-
head="Synthetic Data Generator",
|
29 |
theme=theme,
|
30 |
)
|
31 |
|
|
|
25 |
["Text Classification", "Supervised Fine-Tuning", "README"],
|
26 |
css=css,
|
27 |
title=image,
|
|
|
28 |
theme=theme,
|
29 |
)
|
30 |
|
src/synthetic_dataset_generator/apps/base.py
CHANGED
@@ -91,7 +91,7 @@ def show_success_message(org_name, repo_name) -> gr.Markdown:
|
|
91 |
client = get_argilla_client()
|
92 |
if client is None:
|
93 |
return gr.Markdown(
|
94 |
-
value="""
|
95 |
<div style="padding: 1em; background-color: var(--block-background-fill); border-color: var(--border-color-primary); border-width: 1px; border-radius: 5px;">
|
96 |
<h3 style="color: #2e7d32; margin: 0;">Dataset Published Successfully!</h3>
|
97 |
<p style="margin-top: 0.5em;">
|
@@ -138,7 +138,7 @@ def show_success_message(org_name, repo_name) -> gr.Markdown:
|
|
138 |
|
139 |
|
140 |
def hide_success_message() -> gr.Markdown:
|
141 |
-
return gr.Markdown(value="")
|
142 |
|
143 |
|
144 |
def test_max_num_rows(num_rows: int) -> int:
|
|
|
91 |
client = get_argilla_client()
|
92 |
if client is None:
|
93 |
return gr.Markdown(
|
94 |
+
value=f"""
|
95 |
<div style="padding: 1em; background-color: var(--block-background-fill); border-color: var(--border-color-primary); border-width: 1px; border-radius: 5px;">
|
96 |
<h3 style="color: #2e7d32; margin: 0;">Dataset Published Successfully!</h3>
|
97 |
<p style="margin-top: 0.5em;">
|
|
|
138 |
|
139 |
|
140 |
def hide_success_message() -> gr.Markdown:
|
141 |
+
return gr.Markdown(value="", visible=False, height=100)
|
142 |
|
143 |
|
144 |
def test_max_num_rows(num_rows: int) -> int:
|
src/synthetic_dataset_generator/apps/eval.py
CHANGED
@@ -782,7 +782,10 @@ with gr.Blocks() as app:
|
|
782 |
)
|
783 |
btn_push_to_hub = gr.Button("Push to Hub", variant="primary", scale=2)
|
784 |
with gr.Column(scale=3):
|
785 |
-
success_message = gr.Markdown(
|
|
|
|
|
|
|
786 |
with gr.Accordion(
|
787 |
"Customize your pipeline with distilabel",
|
788 |
open=False,
|
|
|
782 |
)
|
783 |
btn_push_to_hub = gr.Button("Push to Hub", variant="primary", scale=2)
|
784 |
with gr.Column(scale=3):
|
785 |
+
success_message = gr.Markdown(
|
786 |
+
visible=True,
|
787 |
+
height=100, # don't remove this otherwise progress is not visible
|
788 |
+
)
|
789 |
with gr.Accordion(
|
790 |
"Customize your pipeline with distilabel",
|
791 |
open=False,
|
src/synthetic_dataset_generator/apps/sft.py
CHANGED
@@ -485,7 +485,10 @@ with gr.Blocks() as app:
|
|
485 |
"Push to Hub", variant="primary", scale=2
|
486 |
)
|
487 |
with gr.Column(scale=3):
|
488 |
-
success_message = gr.Markdown(
|
|
|
|
|
|
|
489 |
with gr.Accordion(
|
490 |
"Customize your pipeline with distilabel",
|
491 |
open=False,
|
|
|
485 |
"Push to Hub", variant="primary", scale=2
|
486 |
)
|
487 |
with gr.Column(scale=3):
|
488 |
+
success_message = gr.Markdown(
|
489 |
+
visible=True,
|
490 |
+
height=100, # don't remove this otherwise progress is not visible
|
491 |
+
)
|
492 |
with gr.Accordion(
|
493 |
"Customize your pipeline with distilabel",
|
494 |
open=False,
|
src/synthetic_dataset_generator/apps/textcat.py
CHANGED
@@ -509,7 +509,10 @@ with gr.Blocks() as app:
|
|
509 |
)
|
510 |
btn_push_to_hub = gr.Button("Push to Hub", variant="primary", scale=2)
|
511 |
with gr.Column(scale=3):
|
512 |
-
success_message = gr.Markdown(
|
|
|
|
|
|
|
513 |
with gr.Accordion(
|
514 |
"Customize your pipeline with distilabel",
|
515 |
open=False,
|
|
|
509 |
)
|
510 |
btn_push_to_hub = gr.Button("Push to Hub", variant="primary", scale=2)
|
511 |
with gr.Column(scale=3):
|
512 |
+
success_message = gr.Markdown(
|
513 |
+
visible=True,
|
514 |
+
height=100, # don't remove this otherwise progress is not visible
|
515 |
+
)
|
516 |
with gr.Accordion(
|
517 |
"Customize your pipeline with distilabel",
|
518 |
open=False,
|