move order hide pipeline ui
Browse files
src/distilabel_dataset_generator/apps/eval.py
CHANGED
@@ -750,10 +750,6 @@ with gr.Blocks() as app:
|
|
750 |
)
|
751 |
|
752 |
btn_push_to_hub.click(
|
753 |
-
fn=hide_pipeline_code_visibility,
|
754 |
-
inputs=[],
|
755 |
-
outputs=[pipeline_code_ui],
|
756 |
-
).then(
|
757 |
fn=validate_argilla_user_workspace_dataset,
|
758 |
inputs=[repo_name],
|
759 |
outputs=[success_message],
|
@@ -767,6 +763,10 @@ with gr.Blocks() as app:
|
|
767 |
fn=hide_success_message,
|
768 |
outputs=[success_message],
|
769 |
show_progress=True,
|
|
|
|
|
|
|
|
|
770 |
).success(
|
771 |
fn=push_dataset,
|
772 |
inputs=[
|
|
|
750 |
)
|
751 |
|
752 |
btn_push_to_hub.click(
|
|
|
|
|
|
|
|
|
753 |
fn=validate_argilla_user_workspace_dataset,
|
754 |
inputs=[repo_name],
|
755 |
outputs=[success_message],
|
|
|
763 |
fn=hide_success_message,
|
764 |
outputs=[success_message],
|
765 |
show_progress=True,
|
766 |
+
).success(
|
767 |
+
fn=hide_pipeline_code_visibility,
|
768 |
+
inputs=[],
|
769 |
+
outputs=[pipeline_code_ui],
|
770 |
).success(
|
771 |
fn=push_dataset,
|
772 |
inputs=[
|
src/distilabel_dataset_generator/apps/sft.py
CHANGED
@@ -452,7 +452,6 @@ with gr.Blocks(css=_LOGGED_OUT_CSS) as app:
|
|
452 |
label="Distilabel Pipeline Code",
|
453 |
)
|
454 |
|
455 |
-
|
456 |
load_btn.click(
|
457 |
fn=generate_system_prompt,
|
458 |
inputs=[dataset_description, temperature],
|
@@ -465,7 +464,6 @@ with gr.Blocks(css=_LOGGED_OUT_CSS) as app:
|
|
465 |
show_progress=True,
|
466 |
)
|
467 |
|
468 |
-
|
469 |
btn_apply_to_sample_dataset.click(
|
470 |
fn=generate_sample_dataset,
|
471 |
inputs=[system_prompt, num_turns],
|
@@ -474,10 +472,6 @@ with gr.Blocks(css=_LOGGED_OUT_CSS) as app:
|
|
474 |
)
|
475 |
|
476 |
btn_push_to_hub.click(
|
477 |
-
fn=hide_pipeline_code_visibility,
|
478 |
-
inputs=[],
|
479 |
-
outputs=[pipeline_code_ui],
|
480 |
-
).then(
|
481 |
fn=validate_argilla_user_workspace_dataset,
|
482 |
inputs=[repo_name],
|
483 |
outputs=[success_message],
|
@@ -491,6 +485,10 @@ with gr.Blocks(css=_LOGGED_OUT_CSS) as app:
|
|
491 |
fn=hide_success_message,
|
492 |
outputs=[success_message],
|
493 |
show_progress=True,
|
|
|
|
|
|
|
|
|
494 |
).success(
|
495 |
fn=push_dataset,
|
496 |
inputs=[
|
@@ -517,6 +515,5 @@ with gr.Blocks(css=_LOGGED_OUT_CSS) as app:
|
|
517 |
outputs=[pipeline_code_ui],
|
518 |
)
|
519 |
|
520 |
-
|
521 |
app.load(fn=swap_visibility, outputs=main_ui)
|
522 |
app.load(fn=get_org_dropdown, outputs=[org_name])
|
|
|
452 |
label="Distilabel Pipeline Code",
|
453 |
)
|
454 |
|
|
|
455 |
load_btn.click(
|
456 |
fn=generate_system_prompt,
|
457 |
inputs=[dataset_description, temperature],
|
|
|
464 |
show_progress=True,
|
465 |
)
|
466 |
|
|
|
467 |
btn_apply_to_sample_dataset.click(
|
468 |
fn=generate_sample_dataset,
|
469 |
inputs=[system_prompt, num_turns],
|
|
|
472 |
)
|
473 |
|
474 |
btn_push_to_hub.click(
|
|
|
|
|
|
|
|
|
475 |
fn=validate_argilla_user_workspace_dataset,
|
476 |
inputs=[repo_name],
|
477 |
outputs=[success_message],
|
|
|
485 |
fn=hide_success_message,
|
486 |
outputs=[success_message],
|
487 |
show_progress=True,
|
488 |
+
).success(
|
489 |
+
fn=hide_pipeline_code_visibility,
|
490 |
+
inputs=[],
|
491 |
+
outputs=[pipeline_code_ui],
|
492 |
).success(
|
493 |
fn=push_dataset,
|
494 |
inputs=[
|
|
|
515 |
outputs=[pipeline_code_ui],
|
516 |
)
|
517 |
|
|
|
518 |
app.load(fn=swap_visibility, outputs=main_ui)
|
519 |
app.load(fn=get_org_dropdown, outputs=[org_name])
|
src/distilabel_dataset_generator/apps/textcat.py
CHANGED
@@ -499,10 +499,6 @@ with gr.Blocks(css=_LOGGED_OUT_CSS) as app:
|
|
499 |
)
|
500 |
|
501 |
btn_push_to_hub.click(
|
502 |
-
fn=hide_pipeline_code_visibility,
|
503 |
-
inputs=[],
|
504 |
-
outputs=[pipeline_code_ui],
|
505 |
-
).then(
|
506 |
fn=validate_argilla_user_workspace_dataset,
|
507 |
inputs=[repo_name],
|
508 |
outputs=[success_message],
|
@@ -516,6 +512,10 @@ with gr.Blocks(css=_LOGGED_OUT_CSS) as app:
|
|
516 |
fn=hide_success_message,
|
517 |
outputs=[success_message],
|
518 |
show_progress=True,
|
|
|
|
|
|
|
|
|
519 |
).success(
|
520 |
fn=push_dataset,
|
521 |
inputs=[
|
|
|
499 |
)
|
500 |
|
501 |
btn_push_to_hub.click(
|
|
|
|
|
|
|
|
|
502 |
fn=validate_argilla_user_workspace_dataset,
|
503 |
inputs=[repo_name],
|
504 |
outputs=[success_message],
|
|
|
512 |
fn=hide_success_message,
|
513 |
outputs=[success_message],
|
514 |
show_progress=True,
|
515 |
+
).success(
|
516 |
+
fn=hide_pipeline_code_visibility,
|
517 |
+
inputs=[],
|
518 |
+
outputs=[pipeline_code_ui],
|
519 |
).success(
|
520 |
fn=push_dataset,
|
521 |
inputs=[
|