Spaces:
Runtime error
Runtime error
Commit
Β·
76d10ec
1
Parent(s):
1738666
fix swap buttons
Browse files
src/synthetic_dataset_generator/apps/eval.py
CHANGED
|
@@ -608,8 +608,8 @@ with gr.Blocks() as app:
|
|
| 608 |
sumbit_on_select=True,
|
| 609 |
)
|
| 610 |
with gr.Row():
|
| 611 |
-
load_btn = gr.Button("Load", variant="primary")
|
| 612 |
clear_btn_part = gr.Button("Clear", variant="secondary")
|
|
|
|
| 613 |
|
| 614 |
with gr.Column(scale=3):
|
| 615 |
search_out = gr.HTML(label="Dataset preview")
|
|
@@ -676,8 +676,8 @@ with gr.Blocks() as app:
|
|
| 676 |
outputs=[eval_type],
|
| 677 |
)
|
| 678 |
with gr.Row():
|
| 679 |
-
btn_apply_to_sample_dataset = gr.Button("Save", variant="primary")
|
| 680 |
clear_btn_full = gr.Button("Clear", variant="secondary")
|
|
|
|
| 681 |
with gr.Column(scale=3):
|
| 682 |
dataframe = gr.Dataframe(
|
| 683 |
headers=["prompt", "completion", "evaluation"],
|
|
|
|
| 608 |
sumbit_on_select=True,
|
| 609 |
)
|
| 610 |
with gr.Row():
|
|
|
|
| 611 |
clear_btn_part = gr.Button("Clear", variant="secondary")
|
| 612 |
+
load_btn = gr.Button("Load", variant="primary")
|
| 613 |
|
| 614 |
with gr.Column(scale=3):
|
| 615 |
search_out = gr.HTML(label="Dataset preview")
|
|
|
|
| 676 |
outputs=[eval_type],
|
| 677 |
)
|
| 678 |
with gr.Row():
|
|
|
|
| 679 |
clear_btn_full = gr.Button("Clear", variant="secondary")
|
| 680 |
+
btn_apply_to_sample_dataset = gr.Button("Save", variant="primary")
|
| 681 |
with gr.Column(scale=3):
|
| 682 |
dataframe = gr.Dataframe(
|
| 683 |
headers=["prompt", "completion", "evaluation"],
|
src/synthetic_dataset_generator/apps/sft.py
CHANGED
|
@@ -373,14 +373,14 @@ with gr.Blocks() as app:
|
|
| 373 |
placeholder="Give a precise description of your desired dataset.",
|
| 374 |
)
|
| 375 |
with gr.Row():
|
| 376 |
-
load_btn = gr.Button(
|
| 377 |
-
"Create",
|
| 378 |
-
variant="primary",
|
| 379 |
-
)
|
| 380 |
clear_btn_part = gr.Button(
|
| 381 |
"Clear",
|
| 382 |
variant="secondary",
|
| 383 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 384 |
with gr.Column(scale=3):
|
| 385 |
examples = gr.Examples(
|
| 386 |
examples=DEFAULT_DATASET_DESCRIPTIONS,
|
|
@@ -407,13 +407,13 @@ with gr.Blocks() as app:
|
|
| 407 |
info="Choose between 1 (single turn with 'instruction-response' columns) and 2-4 (multi-turn conversation with a 'messages' column).",
|
| 408 |
)
|
| 409 |
with gr.Row():
|
| 410 |
-
btn_apply_to_sample_dataset = gr.Button(
|
| 411 |
-
"Save", variant="primary"
|
| 412 |
-
)
|
| 413 |
clear_btn_full = gr.Button(
|
| 414 |
"Clear",
|
| 415 |
variant="secondary",
|
| 416 |
)
|
|
|
|
|
|
|
|
|
|
| 417 |
with gr.Column(scale=3):
|
| 418 |
dataframe = _get_dataframe()
|
| 419 |
|
|
|
|
| 373 |
placeholder="Give a precise description of your desired dataset.",
|
| 374 |
)
|
| 375 |
with gr.Row():
|
|
|
|
|
|
|
|
|
|
|
|
|
| 376 |
clear_btn_part = gr.Button(
|
| 377 |
"Clear",
|
| 378 |
variant="secondary",
|
| 379 |
)
|
| 380 |
+
load_btn = gr.Button(
|
| 381 |
+
"Create",
|
| 382 |
+
variant="primary",
|
| 383 |
+
)
|
| 384 |
with gr.Column(scale=3):
|
| 385 |
examples = gr.Examples(
|
| 386 |
examples=DEFAULT_DATASET_DESCRIPTIONS,
|
|
|
|
| 407 |
info="Choose between 1 (single turn with 'instruction-response' columns) and 2-4 (multi-turn conversation with a 'messages' column).",
|
| 408 |
)
|
| 409 |
with gr.Row():
|
|
|
|
|
|
|
|
|
|
| 410 |
clear_btn_full = gr.Button(
|
| 411 |
"Clear",
|
| 412 |
variant="secondary",
|
| 413 |
)
|
| 414 |
+
btn_apply_to_sample_dataset = gr.Button(
|
| 415 |
+
"Save", variant="primary"
|
| 416 |
+
)
|
| 417 |
with gr.Column(scale=3):
|
| 418 |
dataframe = _get_dataframe()
|
| 419 |
|
src/synthetic_dataset_generator/apps/textcat.py
CHANGED
|
@@ -347,14 +347,14 @@ with gr.Blocks() as app:
|
|
| 347 |
placeholder="Give a precise description of your desired dataset.",
|
| 348 |
)
|
| 349 |
with gr.Row():
|
| 350 |
-
load_btn = gr.Button(
|
| 351 |
-
"Create",
|
| 352 |
-
variant="primary",
|
| 353 |
-
)
|
| 354 |
clear_btn_part = gr.Button(
|
| 355 |
"Clear",
|
| 356 |
variant="secondary",
|
| 357 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 358 |
with gr.Column(scale=3):
|
| 359 |
examples = gr.Examples(
|
| 360 |
examples=DEFAULT_DATASET_DESCRIPTIONS,
|
|
@@ -416,8 +416,8 @@ with gr.Blocks() as app:
|
|
| 416 |
interactive=True,
|
| 417 |
)
|
| 418 |
with gr.Row():
|
| 419 |
-
btn_apply_to_sample_dataset = gr.Button("Save", variant="primary")
|
| 420 |
clear_btn_full = gr.Button("Clear", variant="secondary")
|
|
|
|
| 421 |
with gr.Column(scale=3):
|
| 422 |
dataframe = _get_dataframe()
|
| 423 |
|
|
|
|
| 347 |
placeholder="Give a precise description of your desired dataset.",
|
| 348 |
)
|
| 349 |
with gr.Row():
|
|
|
|
|
|
|
|
|
|
|
|
|
| 350 |
clear_btn_part = gr.Button(
|
| 351 |
"Clear",
|
| 352 |
variant="secondary",
|
| 353 |
)
|
| 354 |
+
load_btn = gr.Button(
|
| 355 |
+
"Create",
|
| 356 |
+
variant="primary",
|
| 357 |
+
)
|
| 358 |
with gr.Column(scale=3):
|
| 359 |
examples = gr.Examples(
|
| 360 |
examples=DEFAULT_DATASET_DESCRIPTIONS,
|
|
|
|
| 416 |
interactive=True,
|
| 417 |
)
|
| 418 |
with gr.Row():
|
|
|
|
| 419 |
clear_btn_full = gr.Button("Clear", variant="secondary")
|
| 420 |
+
btn_apply_to_sample_dataset = gr.Button("Save", variant="primary")
|
| 421 |
with gr.Column(scale=3):
|
| 422 |
dataframe = _get_dataframe()
|
| 423 |
|