Spaces:
Runtime error
Runtime error
Commit
ยท
35eb40e
1
Parent(s):
6e87332
refactor: Add argilla as first option
Browse files
src/distilabel_dataset_generator/apps/sft.py
CHANGED
|
@@ -489,6 +489,23 @@ with gr.Blocks(
|
|
| 489 |
maximum=500,
|
| 490 |
info="The number of rows in the dataset. Note that you are able to generate more rows at once but that this will take time.",
|
| 491 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 492 |
with gr.Tab("Hugging Face Hub"):
|
| 493 |
with gr.Row(variant="panel"):
|
| 494 |
org_name = get_org_dropdown()
|
|
@@ -513,23 +530,7 @@ with gr.Blocks(
|
|
| 513 |
btn_push_to_hub = gr.Button(
|
| 514 |
value="Push to Hub", variant="primary", scale=2
|
| 515 |
)
|
| 516 |
-
|
| 517 |
-
with gr.Row(variant="panel"):
|
| 518 |
-
dataset_name = gr.Textbox(
|
| 519 |
-
label="Dataset name",
|
| 520 |
-
placeholder="dataset_name",
|
| 521 |
-
value="my-distiset",
|
| 522 |
-
)
|
| 523 |
-
with gr.Row(variant="panel"):
|
| 524 |
-
btn_generate_full_dataset_copy = gr.Button(
|
| 525 |
-
value="Generate", variant="primary", scale=2
|
| 526 |
-
)
|
| 527 |
-
btn_generate_and_push_to_argilla = gr.Button(
|
| 528 |
-
value="Generate and Push to Argilla", variant="primary", scale=2
|
| 529 |
-
)
|
| 530 |
-
btn_push_to_argilla = gr.Button(
|
| 531 |
-
value="Push to Argilla", variant="primary", scale=2
|
| 532 |
-
)
|
| 533 |
with gr.Row():
|
| 534 |
final_dataset = gr.Dataframe(
|
| 535 |
value=DEFAULT_DATASETS[0],
|
|
|
|
| 489 |
maximum=500,
|
| 490 |
info="The number of rows in the dataset. Note that you are able to generate more rows at once but that this will take time.",
|
| 491 |
)
|
| 492 |
+
with gr.Tab(label="Argilla"):
|
| 493 |
+
with gr.Row(variant="panel"):
|
| 494 |
+
dataset_name = gr.Textbox(
|
| 495 |
+
label="Dataset name",
|
| 496 |
+
placeholder="dataset_name",
|
| 497 |
+
value="my-distiset",
|
| 498 |
+
)
|
| 499 |
+
with gr.Row(variant="panel"):
|
| 500 |
+
btn_generate_full_dataset_copy = gr.Button(
|
| 501 |
+
value="Generate", variant="primary", scale=2
|
| 502 |
+
)
|
| 503 |
+
btn_generate_and_push_to_argilla = gr.Button(
|
| 504 |
+
value="Generate and Push to Argilla", variant="primary", scale=2
|
| 505 |
+
)
|
| 506 |
+
btn_push_to_argilla = gr.Button(
|
| 507 |
+
value="Push to Argilla", variant="primary", scale=2
|
| 508 |
+
)
|
| 509 |
with gr.Tab("Hugging Face Hub"):
|
| 510 |
with gr.Row(variant="panel"):
|
| 511 |
org_name = get_org_dropdown()
|
|
|
|
| 530 |
btn_push_to_hub = gr.Button(
|
| 531 |
value="Push to Hub", variant="primary", scale=2
|
| 532 |
)
|
| 533 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 534 |
with gr.Row():
|
| 535 |
final_dataset = gr.Dataframe(
|
| 536 |
value=DEFAULT_DATASETS[0],
|