Spaces:
Runtime error
Runtime error
Leire Aguirre
commited on
Commit
Β·
f007fb2
1
Parent(s):
fb096d2
update column and button size
Browse files
src/distilabel_dataset_generator/apps/eval.py
CHANGED
|
@@ -607,7 +607,7 @@ with gr.Blocks() as app:
|
|
| 607 |
gr.HTML(value="<hr>")
|
| 608 |
gr.Markdown(value="## 2. Configure your task")
|
| 609 |
with gr.Row(equal_height=False):
|
| 610 |
-
with gr.Column(scale=
|
| 611 |
eval_type = gr.Dropdown(
|
| 612 |
label="Evaluation type",
|
| 613 |
choices=["ultrafeedback", "custom"],
|
|
@@ -666,7 +666,7 @@ with gr.Blocks() as app:
|
|
| 666 |
outputs=[eval_type],
|
| 667 |
)
|
| 668 |
btn_apply_to_sample_dataset = gr.Button(
|
| 669 |
-
"Refresh dataset", variant="secondary"
|
| 670 |
)
|
| 671 |
with gr.Column(scale=3):
|
| 672 |
dataframe = gr.Dataframe(
|
|
|
|
| 607 |
gr.HTML(value="<hr>")
|
| 608 |
gr.Markdown(value="## 2. Configure your task")
|
| 609 |
with gr.Row(equal_height=False):
|
| 610 |
+
with gr.Column(scale=2):
|
| 611 |
eval_type = gr.Dropdown(
|
| 612 |
label="Evaluation type",
|
| 613 |
choices=["ultrafeedback", "custom"],
|
|
|
|
| 666 |
outputs=[eval_type],
|
| 667 |
)
|
| 668 |
btn_apply_to_sample_dataset = gr.Button(
|
| 669 |
+
"Refresh dataset", variant="secondary"
|
| 670 |
)
|
| 671 |
with gr.Column(scale=3):
|
| 672 |
dataframe = gr.Dataframe(
|
src/distilabel_dataset_generator/apps/sft.py
CHANGED
|
@@ -385,7 +385,7 @@ with gr.Blocks(css=_LOGGED_OUT_CSS) as app:
|
|
| 385 |
gr.HTML(value="<hr>")
|
| 386 |
gr.Markdown(value="## 2. Configure your dataset")
|
| 387 |
with gr.Row(equal_height=False):
|
| 388 |
-
with gr.Column(scale=
|
| 389 |
system_prompt = gr.Textbox(
|
| 390 |
label="System prompt",
|
| 391 |
placeholder="You are a helpful assistant.",
|
|
@@ -400,7 +400,7 @@ with gr.Blocks(css=_LOGGED_OUT_CSS) as app:
|
|
| 400 |
info="Choose between 1 (single turn with 'instruction-response' columns) and 2-4 (multi-turn conversation with a 'messages' column).",
|
| 401 |
)
|
| 402 |
btn_apply_to_sample_dataset = gr.Button(
|
| 403 |
-
"Refresh dataset", variant="secondary"
|
| 404 |
)
|
| 405 |
with gr.Column(scale=3):
|
| 406 |
dataframe = gr.Dataframe(
|
|
|
|
| 385 |
gr.HTML(value="<hr>")
|
| 386 |
gr.Markdown(value="## 2. Configure your dataset")
|
| 387 |
with gr.Row(equal_height=False):
|
| 388 |
+
with gr.Column(scale=2):
|
| 389 |
system_prompt = gr.Textbox(
|
| 390 |
label="System prompt",
|
| 391 |
placeholder="You are a helpful assistant.",
|
|
|
|
| 400 |
info="Choose between 1 (single turn with 'instruction-response' columns) and 2-4 (multi-turn conversation with a 'messages' column).",
|
| 401 |
)
|
| 402 |
btn_apply_to_sample_dataset = gr.Button(
|
| 403 |
+
"Refresh dataset", variant="secondary"
|
| 404 |
)
|
| 405 |
with gr.Column(scale=3):
|
| 406 |
dataframe = gr.Dataframe(
|
src/distilabel_dataset_generator/apps/textcat.py
CHANGED
|
@@ -367,7 +367,7 @@ with gr.Blocks(css=_LOGGED_OUT_CSS) as app:
|
|
| 367 |
gr.HTML("<hr>")
|
| 368 |
gr.Markdown("## 2. Configure your dataset")
|
| 369 |
with gr.Row(equal_height=False):
|
| 370 |
-
with gr.Column(scale=
|
| 371 |
system_prompt = gr.Textbox(
|
| 372 |
label="System prompt",
|
| 373 |
placeholder="You are a helpful assistant.",
|
|
@@ -417,7 +417,7 @@ with gr.Blocks(css=_LOGGED_OUT_CSS) as app:
|
|
| 417 |
interactive=True,
|
| 418 |
)
|
| 419 |
btn_apply_to_sample_dataset = gr.Button(
|
| 420 |
-
"Refresh dataset", variant="secondary"
|
| 421 |
)
|
| 422 |
with gr.Column(scale=3):
|
| 423 |
dataframe = gr.Dataframe(
|
|
|
|
| 367 |
gr.HTML("<hr>")
|
| 368 |
gr.Markdown("## 2. Configure your dataset")
|
| 369 |
with gr.Row(equal_height=False):
|
| 370 |
+
with gr.Column(scale=2):
|
| 371 |
system_prompt = gr.Textbox(
|
| 372 |
label="System prompt",
|
| 373 |
placeholder="You are a helpful assistant.",
|
|
|
|
| 417 |
interactive=True,
|
| 418 |
)
|
| 419 |
btn_apply_to_sample_dataset = gr.Button(
|
| 420 |
+
"Refresh dataset", variant="secondary"
|
| 421 |
)
|
| 422 |
with gr.Column(scale=3):
|
| 423 |
dataframe = gr.Dataframe(
|