Spaces:
Running
Running
Fixing too many values to unpack
Browse files
app.py
CHANGED
@@ -66,8 +66,9 @@ def generate_synthetic_dataset(
|
|
66 |
"""
|
67 |
|
68 |
for var in llm_env_vars.split(","):
|
69 |
-
|
70 |
-
|
|
|
71 |
|
72 |
# Validate inputs
|
73 |
if not validate_inputs(
|
@@ -162,6 +163,10 @@ def ui_main():
|
|
162 |
"""
|
163 |
)
|
164 |
|
|
|
|
|
|
|
|
|
165 |
with gr.Row():
|
166 |
llm_model = gr.Textbox(
|
167 |
label="LLM Model", placeholder="model_provider/model_name", value="huggingface/mistralai/Mistral-7B-Instruct-v0.3"
|
@@ -199,9 +204,6 @@ def ui_main():
|
|
199 |
num_entries = gr.Number(label="Number of Entries", value=1000)
|
200 |
|
201 |
with gr.Row():
|
202 |
-
gr.LoginButton(
|
203 |
-
value="Login with Hugging Face",
|
204 |
-
)
|
205 |
hf_repo_name = gr.Textbox(
|
206 |
label="Hugging Face Repo Name",
|
207 |
placeholder="organization_or_user_name/dataset_name",
|
|
|
66 |
"""
|
67 |
|
68 |
for var in llm_env_vars.split(","):
|
69 |
+
if "=" in var:
|
70 |
+
key, value = var.split("=", 1)
|
71 |
+
os.environ[key.strip()] = value.strip()
|
72 |
|
73 |
# Validate inputs
|
74 |
if not validate_inputs(
|
|
|
163 |
"""
|
164 |
)
|
165 |
|
166 |
+
gr.LoginButton(
|
167 |
+
value="Login with Hugging Face",
|
168 |
+
)
|
169 |
+
|
170 |
with gr.Row():
|
171 |
llm_model = gr.Textbox(
|
172 |
label="LLM Model", placeholder="model_provider/model_name", value="huggingface/mistralai/Mistral-7B-Instruct-v0.3"
|
|
|
204 |
num_entries = gr.Number(label="Number of Entries", value=1000)
|
205 |
|
206 |
with gr.Row():
|
|
|
|
|
|
|
207 |
hf_repo_name = gr.Textbox(
|
208 |
label="Hugging Face Repo Name",
|
209 |
placeholder="organization_or_user_name/dataset_name",
|