osanseviero HF staff commited on
Commit
9981021
1 Parent(s): 97e2345

Update src/distilabel_dataset_generator/apps/sft.py

Browse files
src/distilabel_dataset_generator/apps/sft.py CHANGED
@@ -158,11 +158,16 @@ def generate_pipeline_code() -> str:
158
 
159
  return pipeline_code
160
 
 
 
 
161
 
162
  with gr.Blocks(
163
  title="⚗️ Distilabel Dataset Generator",
164
  head="⚗️ Distilabel Dataset Generator",
 
165
  ) as app:
 
166
  gr.Markdown("## Iterate on a sample dataset")
167
  with gr.Column() as main_ui:
168
  dataset_description = gr.TextArea(
@@ -237,7 +242,7 @@ with gr.Blocks(
237
  )
238
 
239
  with gr.Row(variant="panel"):
240
- get_login_button()
241
  hf_token = gr.Textbox(label="HF token", type="password")
242
  org_name = get_org_dropdown()
243
  repo_name = gr.Textbox(label="Repo name", placeholder="dataset_name")
 
158
 
159
  return pipeline_code
160
 
161
+ css = """
162
+ .main_ui_logged_out{opacity: 0.3; pointer-events: none}
163
+ """
164
 
165
  with gr.Blocks(
166
  title="⚗️ Distilabel Dataset Generator",
167
  head="⚗️ Distilabel Dataset Generator",
168
+ css=css
169
  ) as app:
170
+ get_login_button()
171
  gr.Markdown("## Iterate on a sample dataset")
172
  with gr.Column() as main_ui:
173
  dataset_description = gr.TextArea(
 
242
  )
243
 
244
  with gr.Row(variant="panel"):
245
+
246
  hf_token = gr.Textbox(label="HF token", type="password")
247
  org_name = get_org_dropdown()
248
  repo_name = gr.Textbox(label="Repo name", placeholder="dataset_name")