add comment to divide functions/ui
Browse files
src/distilabel_dataset_generator/apps/eval.py
CHANGED
@@ -178,6 +178,11 @@ def push_to_hub(
|
|
178 |
new_repo_id = f"{org_name}/{repo_name}"
|
179 |
|
180 |
|
|
|
|
|
|
|
|
|
|
|
181 |
with gr.Blocks() as app:
|
182 |
gr.Markdown("## 1. Select your input dataset")
|
183 |
with gr.Row():
|
|
|
178 |
new_repo_id = f"{org_name}/{repo_name}"
|
179 |
|
180 |
|
181 |
+
######################
|
182 |
+
# Gradio UI
|
183 |
+
######################
|
184 |
+
|
185 |
+
|
186 |
with gr.Blocks() as app:
|
187 |
gr.Markdown("## 1. Select your input dataset")
|
188 |
with gr.Row():
|
src/distilabel_dataset_generator/apps/sft.py
CHANGED
@@ -344,6 +344,11 @@ def push_dataset_to_argilla(
|
|
344 |
return ""
|
345 |
|
346 |
|
|
|
|
|
|
|
|
|
|
|
347 |
with gr.Blocks(css=_LOGGED_OUT_CSS) as app:
|
348 |
with gr.Column() as main_ui:
|
349 |
gr.Markdown(value="## 1. Describe the dataset you want")
|
|
|
344 |
return ""
|
345 |
|
346 |
|
347 |
+
######################
|
348 |
+
# Gradio UI
|
349 |
+
######################
|
350 |
+
|
351 |
+
|
352 |
with gr.Blocks(css=_LOGGED_OUT_CSS) as app:
|
353 |
with gr.Column() as main_ui:
|
354 |
gr.Markdown(value="## 1. Describe the dataset you want")
|
src/distilabel_dataset_generator/apps/textcat.py
CHANGED
@@ -353,6 +353,11 @@ def update_max_num_labels(labels):
|
|
353 |
return gr.update(maximum=len(labels) if labels else 1)
|
354 |
|
355 |
|
|
|
|
|
|
|
|
|
|
|
356 |
with gr.Blocks(css=_LOGGED_OUT_CSS) as app:
|
357 |
with gr.Column() as main_ui:
|
358 |
gr.Markdown("## 1. Describe the dataset you want")
|
|
|
353 |
return gr.update(maximum=len(labels) if labels else 1)
|
354 |
|
355 |
|
356 |
+
######################
|
357 |
+
# Gradio UI
|
358 |
+
######################
|
359 |
+
|
360 |
+
|
361 |
with gr.Blocks(css=_LOGGED_OUT_CSS) as app:
|
362 |
with gr.Column() as main_ui:
|
363 |
gr.Markdown("## 1. Describe the dataset you want")
|