sdiazlor HF staff commited on
Commit
3ef1fed
1 Parent(s): c2fbbc3
src/distilabel_dataset_generator/apps/base.py CHANGED
@@ -15,7 +15,7 @@ from src.distilabel_dataset_generator.utils import (
15
  get_argilla_client,
16
  get_login_button,
17
  list_orgs,
18
- swap_visibilty,
19
  )
20
 
21
  TEXTCAT_TASK = "text_classification"
@@ -137,7 +137,7 @@ def get_main_ui(
137
  show_progress=True,
138
  )
139
 
140
- app.load(fn=swap_visibilty, outputs=main_ui)
141
  app.load(get_org_dropdown, outputs=[org_name])
142
 
143
  return (
 
15
  get_argilla_client,
16
  get_login_button,
17
  list_orgs,
18
+ swap_visibility,
19
  )
20
 
21
  TEXTCAT_TASK = "text_classification"
 
137
  show_progress=True,
138
  )
139
 
140
+ app.load(fn=swap_visibility, outputs=main_ui)
141
  app.load(get_org_dropdown, outputs=[org_name])
142
 
143
  return (
src/distilabel_dataset_generator/apps/sft.py CHANGED
@@ -36,7 +36,7 @@ from src.distilabel_dataset_generator.utils import (
36
  _LOGGED_OUT_CSS,
37
  get_argilla_client,
38
  get_org_dropdown,
39
- swap_visibilty,
40
  )
41
 
42
 
@@ -465,5 +465,5 @@ with gr.Blocks(css=_LOGGED_OUT_CSS) as app:
465
  inputs=[org_name, repo_name],
466
  outputs=[success_message],
467
  )
468
- app.load(fn=swap_visibilty, outputs=main_ui)
469
  app.load(fn=get_org_dropdown, outputs=[org_name])
 
36
  _LOGGED_OUT_CSS,
37
  get_argilla_client,
38
  get_org_dropdown,
39
+ swap_visibility,
40
  )
41
 
42
 
 
465
  inputs=[org_name, repo_name],
466
  outputs=[success_message],
467
  )
468
+ app.load(fn=swap_visibility, outputs=main_ui)
469
  app.load(fn=get_org_dropdown, outputs=[org_name])
src/distilabel_dataset_generator/apps/textcat.py CHANGED
@@ -37,7 +37,7 @@ from src.distilabel_dataset_generator.utils import (
37
  get_argilla_client,
38
  get_org_dropdown,
39
  get_preprocess_labels,
40
- swap_visibilty,
41
  )
42
 
43
 
@@ -526,5 +526,5 @@ with gr.Blocks(css=_LOGGED_OUT_CSS) as app:
526
  inputs=[org_name, repo_name],
527
  outputs=[success_message],
528
  )
529
- app.load(fn=swap_visibilty, outputs=main_ui)
530
  app.load(fn=get_org_dropdown, outputs=[org_name])
 
37
  get_argilla_client,
38
  get_org_dropdown,
39
  get_preprocess_labels,
40
+ swap_visibility,
41
  )
42
 
43
 
 
526
  inputs=[org_name, repo_name],
527
  outputs=[success_message],
528
  )
529
+ app.load(fn=swap_visibility, outputs=main_ui)
530
  app.load(fn=get_org_dropdown, outputs=[org_name])
src/distilabel_dataset_generator/utils.py CHANGED
@@ -89,7 +89,7 @@ def get_token(oauth_token: OAuthToken = None):
89
  return ""
90
 
91
 
92
- def swap_visibilty(oauth_token: Optional[OAuthToken] = None):
93
  if oauth_token:
94
  return gr.update(elem_classes=["main_ui_logged_in"])
95
  else:
 
89
  return ""
90
 
91
 
92
+ def swap_visibility(oauth_token: Optional[OAuthToken] = None):
93
  if oauth_token:
94
  return gr.update(elem_classes=["main_ui_logged_in"])
95
  else: