Spaces:
Runtime error
Runtime error
Commit
ยท
bec79d4
1
Parent(s):
ded6d1c
fix minumum heigth issue of success message
Browse files
src/synthetic_dataset_generator/apps/base.py
CHANGED
|
@@ -112,6 +112,9 @@ def show_success_message(org_name, repo_name) -> gr.Markdown:
|
|
| 112 |
</div>
|
| 113 |
""",
|
| 114 |
visible=True,
|
|
|
|
|
|
|
|
|
|
| 115 |
)
|
| 116 |
argilla_api_url = client.api_url
|
| 117 |
return gr.Markdown(
|
|
@@ -134,11 +137,14 @@ def show_success_message(org_name, repo_name) -> gr.Markdown:
|
|
| 134 |
</div>
|
| 135 |
""",
|
| 136 |
visible=True,
|
|
|
|
|
|
|
|
|
|
| 137 |
)
|
| 138 |
|
| 139 |
|
| 140 |
def hide_success_message() -> gr.Markdown:
|
| 141 |
-
return gr.Markdown(value="", visible=
|
| 142 |
|
| 143 |
|
| 144 |
def test_max_num_rows(num_rows: int) -> int:
|
|
|
|
| 112 |
</div>
|
| 113 |
""",
|
| 114 |
visible=True,
|
| 115 |
+
height=None,
|
| 116 |
+
min_height=None,
|
| 117 |
+
max_height=None,
|
| 118 |
)
|
| 119 |
argilla_api_url = client.api_url
|
| 120 |
return gr.Markdown(
|
|
|
|
| 137 |
</div>
|
| 138 |
""",
|
| 139 |
visible=True,
|
| 140 |
+
height=None,
|
| 141 |
+
min_height=None,
|
| 142 |
+
max_height=None,
|
| 143 |
)
|
| 144 |
|
| 145 |
|
| 146 |
def hide_success_message() -> gr.Markdown:
|
| 147 |
+
return gr.Markdown(value="", visible=True, height=100)
|
| 148 |
|
| 149 |
|
| 150 |
def test_max_num_rows(num_rows: int) -> int:
|
src/synthetic_dataset_generator/apps/eval.py
CHANGED
|
@@ -784,7 +784,7 @@ with gr.Blocks() as app:
|
|
| 784 |
with gr.Column(scale=3):
|
| 785 |
success_message = gr.Markdown(
|
| 786 |
visible=True,
|
| 787 |
-
|
| 788 |
)
|
| 789 |
with gr.Accordion(
|
| 790 |
"Customize your pipeline with distilabel",
|
|
|
|
| 784 |
with gr.Column(scale=3):
|
| 785 |
success_message = gr.Markdown(
|
| 786 |
visible=True,
|
| 787 |
+
min_height=100, # don't remove this otherwise progress is not visible
|
| 788 |
)
|
| 789 |
with gr.Accordion(
|
| 790 |
"Customize your pipeline with distilabel",
|
src/synthetic_dataset_generator/apps/textcat.py
CHANGED
|
@@ -189,7 +189,7 @@ def generate_dataset(
|
|
| 189 |
else:
|
| 190 |
dataframe = dataframe.rename(columns={"labels": "label"})
|
| 191 |
dataframe["label"] = dataframe["label"].apply(
|
| 192 |
-
lambda x: x.lower().strip() if x.lower().strip() in labels else None
|
| 193 |
)
|
| 194 |
|
| 195 |
progress(1.0, desc="Dataset created")
|
|
@@ -511,7 +511,7 @@ with gr.Blocks() as app:
|
|
| 511 |
with gr.Column(scale=3):
|
| 512 |
success_message = gr.Markdown(
|
| 513 |
visible=True,
|
| 514 |
-
|
| 515 |
)
|
| 516 |
with gr.Accordion(
|
| 517 |
"Customize your pipeline with distilabel",
|
|
|
|
| 189 |
else:
|
| 190 |
dataframe = dataframe.rename(columns={"labels": "label"})
|
| 191 |
dataframe["label"] = dataframe["label"].apply(
|
| 192 |
+
lambda x: x.lower().strip() if x and x.lower().strip() in labels else None
|
| 193 |
)
|
| 194 |
|
| 195 |
progress(1.0, desc="Dataset created")
|
|
|
|
| 511 |
with gr.Column(scale=3):
|
| 512 |
success_message = gr.Markdown(
|
| 513 |
visible=True,
|
| 514 |
+
min_height=100, # don't remove this otherwise progress is not visible
|
| 515 |
)
|
| 516 |
with gr.Accordion(
|
| 517 |
"Customize your pipeline with distilabel",
|