update dataframe visualizations
Browse files
src/distilabel_dataset_generator/apps/eval.py
CHANGED
@@ -185,7 +185,7 @@ def push_to_hub(
|
|
185 |
|
186 |
with gr.Blocks() as app:
|
187 |
gr.Markdown("## 1. Select your input dataset")
|
188 |
-
with gr.Row():
|
189 |
with gr.Column(scale=1):
|
190 |
search_in = HuggingfaceHubSearch(
|
191 |
label="Search",
|
@@ -199,7 +199,7 @@ with gr.Blocks() as app:
|
|
199 |
|
200 |
gr.HTML("<hr>")
|
201 |
gr.Markdown("## 2. Configure your task")
|
202 |
-
with gr.Row():
|
203 |
with gr.Column(scale=1):
|
204 |
eval_type = gr.Dropdown(
|
205 |
label="Evaluation Type",
|
@@ -252,7 +252,7 @@ with gr.Blocks() as app:
|
|
252 |
)
|
253 |
btn_apply_to_sample_dataset = gr.Button("Refresh dataset")
|
254 |
with gr.Column(scale=3):
|
255 |
-
dataframe = gr.Dataframe()
|
256 |
|
257 |
gr.HTML("<hr>")
|
258 |
gr.Markdown("## 3. Generate your dataset")
|
|
|
185 |
|
186 |
with gr.Blocks() as app:
|
187 |
gr.Markdown("## 1. Select your input dataset")
|
188 |
+
with gr.Row(equal_height=False):
|
189 |
with gr.Column(scale=1):
|
190 |
search_in = HuggingfaceHubSearch(
|
191 |
label="Search",
|
|
|
199 |
|
200 |
gr.HTML("<hr>")
|
201 |
gr.Markdown("## 2. Configure your task")
|
202 |
+
with gr.Row(equal_height=False):
|
203 |
with gr.Column(scale=1):
|
204 |
eval_type = gr.Dropdown(
|
205 |
label="Evaluation Type",
|
|
|
252 |
)
|
253 |
btn_apply_to_sample_dataset = gr.Button("Refresh dataset")
|
254 |
with gr.Column(scale=3):
|
255 |
+
dataframe = gr.Dataframe(wrap=True, height=300)
|
256 |
|
257 |
gr.HTML("<hr>")
|
258 |
gr.Markdown("## 3. Generate your dataset")
|
src/distilabel_dataset_generator/apps/sft.py
CHANGED
@@ -376,7 +376,7 @@ with gr.Blocks(css=_LOGGED_OUT_CSS) as app:
|
|
376 |
|
377 |
gr.HTML(value="<hr>")
|
378 |
gr.Markdown(value="## 2. Configure your task")
|
379 |
-
with gr.Row():
|
380 |
with gr.Column(scale=1):
|
381 |
system_prompt = gr.Textbox(
|
382 |
label="System prompt",
|
@@ -393,7 +393,9 @@ with gr.Blocks(css=_LOGGED_OUT_CSS) as app:
|
|
393 |
)
|
394 |
btn_apply_to_sample_dataset = gr.Button("Refresh dataset")
|
395 |
with gr.Column(scale=3):
|
396 |
-
dataframe = gr.Dataframe(
|
|
|
|
|
397 |
|
398 |
gr.HTML(value="<hr>")
|
399 |
gr.Markdown(value="## 3. Generate your dataset")
|
|
|
376 |
|
377 |
gr.HTML(value="<hr>")
|
378 |
gr.Markdown(value="## 2. Configure your task")
|
379 |
+
with gr.Row(equal_height=False):
|
380 |
with gr.Column(scale=1):
|
381 |
system_prompt = gr.Textbox(
|
382 |
label="System prompt",
|
|
|
393 |
)
|
394 |
btn_apply_to_sample_dataset = gr.Button("Refresh dataset")
|
395 |
with gr.Column(scale=3):
|
396 |
+
dataframe = gr.Dataframe(
|
397 |
+
headers=["prompt", "completion"], wrap=True, height=300
|
398 |
+
)
|
399 |
|
400 |
gr.HTML(value="<hr>")
|
401 |
gr.Markdown(value="## 3. Generate your dataset")
|
src/distilabel_dataset_generator/apps/textcat.py
CHANGED
@@ -384,7 +384,7 @@ with gr.Blocks(css=_LOGGED_OUT_CSS) as app:
|
|
384 |
|
385 |
gr.HTML("<hr>")
|
386 |
gr.Markdown("## 2. Configure your task")
|
387 |
-
with gr.Row():
|
388 |
with gr.Column(scale=1):
|
389 |
system_prompt = gr.Textbox(
|
390 |
label="System prompt",
|
@@ -436,7 +436,9 @@ with gr.Blocks(css=_LOGGED_OUT_CSS) as app:
|
|
436 |
)
|
437 |
btn_apply_to_sample_dataset = gr.Button("Refresh dataset")
|
438 |
with gr.Column(scale=3):
|
439 |
-
dataframe = gr.Dataframe(
|
|
|
|
|
440 |
|
441 |
gr.HTML("<hr>")
|
442 |
gr.Markdown("## 3. Generate your dataset")
|
|
|
384 |
|
385 |
gr.HTML("<hr>")
|
386 |
gr.Markdown("## 2. Configure your task")
|
387 |
+
with gr.Row(equal_height=False):
|
388 |
with gr.Column(scale=1):
|
389 |
system_prompt = gr.Textbox(
|
390 |
label="System prompt",
|
|
|
436 |
)
|
437 |
btn_apply_to_sample_dataset = gr.Button("Refresh dataset")
|
438 |
with gr.Column(scale=3):
|
439 |
+
dataframe = gr.Dataframe(
|
440 |
+
headers=["labels", "text"], wrap=True, height=300, column_widths=[1, 3]
|
441 |
+
)
|
442 |
|
443 |
gr.HTML("<hr>")
|
444 |
gr.Markdown("## 3. Generate your dataset")
|