Shekswess commited on
Commit
1b3359b
·
1 Parent(s): 841bbc6

Removing value from Login button

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -34,7 +34,6 @@ def generate_synthetic_dataset(
34
  language,
35
  additional_description,
36
  num_entries,
37
- hf_token,
38
  hf_repo_name,
39
  llm_env_vars,
40
  ):
@@ -52,14 +51,12 @@ def generate_synthetic_dataset(
52
  language (str): The language of the dataset.
53
  additional_description (str): Additional description for the dataset.
54
  num_entries (int): The number of entries in the dataset.
55
- hf_token (str): The Hugging Face token.
56
  hf_repo_name (str): The Hugging Face repository name.
57
  llm_env_vars (str): Comma-separated environment variables for the LLM.
58
 
59
  Returns:
60
  str: A message indicating the result of the dataset generation.
61
  """
62
- os.environ["HF_TOKEN"] = hf_token
63
 
64
  for var in llm_env_vars.split(","):
65
  key, value = var.split("=")
@@ -190,7 +187,7 @@ def ui_main():
190
  num_entries = gr.Number(label="Number of Entries", value=1000)
191
 
192
  with gr.Row():
193
- hf_token = gr.LoginButton(
194
  value="Login with Hugging Face",
195
  )
196
  hf_repo_name = gr.Textbox(
@@ -225,7 +222,6 @@ def ui_main():
225
  language,
226
  additional_description,
227
  num_entries,
228
- hf_token,
229
  hf_repo_name,
230
  llm_env_vars,
231
  ],
 
34
  language,
35
  additional_description,
36
  num_entries,
 
37
  hf_repo_name,
38
  llm_env_vars,
39
  ):
 
51
  language (str): The language of the dataset.
52
  additional_description (str): Additional description for the dataset.
53
  num_entries (int): The number of entries in the dataset.
 
54
  hf_repo_name (str): The Hugging Face repository name.
55
  llm_env_vars (str): Comma-separated environment variables for the LLM.
56
 
57
  Returns:
58
  str: A message indicating the result of the dataset generation.
59
  """
 
60
 
61
  for var in llm_env_vars.split(","):
62
  key, value = var.split("=")
 
187
  num_entries = gr.Number(label="Number of Entries", value=1000)
188
 
189
  with gr.Row():
190
+ gr.LoginButton(
191
  value="Login with Hugging Face",
192
  )
193
  hf_repo_name = gr.Textbox(
 
222
  language,
223
  additional_description,
224
  num_entries,
 
225
  hf_repo_name,
226
  llm_env_vars,
227
  ],