davidberenstein1957 HF staff commited on
Commit
ab58a29
·
1 Parent(s): 7314f90

fix: Add dark mode text highlight

Browse files
app.py CHANGED
@@ -38,9 +38,19 @@ button[role="tab"][data-tab-id][aria-selected="true"] {
38
  .gallery {
39
  color: black !important;
40
  }
 
 
 
 
 
41
  .flex-shrink-0.truncate.px-1 {
42
  color: black !important;
43
  }
 
 
 
 
 
44
  """
45
 
46
  demo = TabbedInterface(
 
38
  .gallery {
39
  color: black !important;
40
  }
41
+ @media (prefers-color-scheme: dark) {
42
+ .gallery {
43
+ color: white !important;
44
+ }
45
+ }
46
  .flex-shrink-0.truncate.px-1 {
47
  color: black !important;
48
  }
49
+ @media (prefers-color-scheme: dark) {
50
+ .flex-shrink-0.truncate.px-1 {
51
+ color: white !important;
52
+ }
53
+ }
54
  """
55
 
56
  demo = TabbedInterface(
src/distilabel_dataset_generator/apps/base.py CHANGED
@@ -301,15 +301,16 @@ def get_iterate_on_sample_dataset_ui(
301
 
302
 
303
  def get_pipeline_code_ui(pipeline_code: str) -> gr.Code:
304
- gr.Markdown("## Customize and run locally with distilabel")
305
  gr.HTML("<hr>")
306
- gr.Markdown(
307
- "You can run this pipeline locally with distilabel. For more information, please refer to the [distilabel documentation](https://distilabel.argilla.io/) or go to the FAQ tab at the top of the page for more information."
308
- )
309
  with gr.Accordion(
310
  "Run this pipeline using distilabel",
311
  open=False,
312
  ):
 
 
 
313
  pipeline_code = gr.Code(
314
  value=pipeline_code,
315
  language="python",
 
301
 
302
 
303
  def get_pipeline_code_ui(pipeline_code: str) -> gr.Code:
304
+ gr.Markdown("## Customize and run with distilabel")
305
  gr.HTML("<hr>")
306
+
 
 
307
  with gr.Accordion(
308
  "Run this pipeline using distilabel",
309
  open=False,
310
  ):
311
+ gr.Markdown(
312
+ "You can run this pipeline locally with distilabel. For more information, please refer to the [distilabel documentation](https://distilabel.argilla.io/) or go to the FAQ tab at the top of the page for more information."
313
+ )
314
  pipeline_code = gr.Code(
315
  value=pipeline_code,
316
  language="python",
src/distilabel_dataset_generator/apps/eval.py CHANGED
@@ -200,7 +200,7 @@ with gr.Blocks() as app:
200
  with gr.Column(scale=1):
201
  eval_type = gr.Dropdown(
202
  label="Evaluation Type",
203
- choices=["instruction", "instruction-response", "custom"],
204
  visible=False,
205
  )
206
  with gr.Tab("instruction") as tab_instruction:
@@ -243,7 +243,7 @@ with gr.Blocks() as app:
243
  interactive=True,
244
  )
245
  tab_custom.select(
246
- lambda: "custom",
247
  inputs=[],
248
  outputs=[eval_type],
249
  )
 
200
  with gr.Column(scale=1):
201
  eval_type = gr.Dropdown(
202
  label="Evaluation Type",
203
+ choices=["instruction", "instruction-response", "custom-template"],
204
  visible=False,
205
  )
206
  with gr.Tab("instruction") as tab_instruction:
 
243
  interactive=True,
244
  )
245
  tab_custom.select(
246
+ lambda: "custom-template",
247
  inputs=[],
248
  outputs=[eval_type],
249
  )