Spaces:
Sleeping
Sleeping
edbeeching
commited on
Commit
·
3a7f84b
1
Parent(s):
976a6d2
wip
Browse files
app.py
CHANGED
|
@@ -346,26 +346,27 @@ def main():
|
|
| 346 |
|
| 347 |
with gr.Column():
|
| 348 |
output_dataset_name = gr.Textbox(label="Output Dataset Name", placeholder="e.g., my-generated-dataset, must be unique. Will be created under the org 'synthetic-data-universe'")
|
| 349 |
-
num_output_samples = gr.Slider(label="Number of samples, leave as '0' for all", value=0, minimum=0, maximum=MAX_SAMPLES_FREE, step=1)
|
| 350 |
-
|
| 351 |
-
with gr.Accordion("Advanced Options (generation parameters, dataset options)", open=False):
|
| 352 |
-
with gr.Row():
|
| 353 |
-
input_dataset_config = gr.Textbox(label="Input Dataset Config", value="default", placeholder="e.g., default, custom")
|
| 354 |
-
input_dataset_split = gr.Textbox(label="Input Dataset Split", value="train", placeholder="e.g., train, test, validation")
|
| 355 |
-
model_revision = gr.Textbox(label="Model Revision", value="main", placeholder="e.g., main, v1.0")
|
| 356 |
|
| 357 |
-
with gr.
|
| 358 |
-
gr.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 359 |
with gr.Row():
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
with gr.Row():
|
| 368 |
-
system_prompt = gr.Textbox(label="System Prompt (Optional)", lines=3, placeholder="Optional system prompt... e.g., You are a helpful assistant.")
|
| 369 |
|
| 370 |
with gr.Group():
|
| 371 |
gr.Markdown("## User Information, for notification when your job is completed (still TODO)")
|
|
|
|
| 346 |
|
| 347 |
with gr.Column():
|
| 348 |
output_dataset_name = gr.Textbox(label="Output Dataset Name", placeholder="e.g., my-generated-dataset, must be unique. Will be created under the org 'synthetic-data-universe'")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 349 |
|
| 350 |
+
with gr.Row():
|
| 351 |
+
with gr.Column():
|
| 352 |
+
input_dataset_config = gr.Dropdown(label="Dataset Config", choices=[], value=None, interactive=False, info="Click Load Info to populate")
|
| 353 |
+
prompt_column = gr.Dropdown(label="Prompt Column", choices=[], value=None, interactive=False, info="Click Load Info to populate")
|
| 354 |
+
|
| 355 |
+
with gr.Column():
|
| 356 |
+
input_dataset_split = gr.Dropdown(label="Dataset Split", choices=[], value=None, interactive=False, info="Click Load Info to populate")
|
| 357 |
+
num_output_samples = gr.Slider(label="Number of samples, leave as '0' for all", value=0, minimum=0, maximum=MAX_SAMPLES_FREE, step=1, interactive=False, info="Click Load Info to populate")
|
| 358 |
+
|
| 359 |
+
gr.Markdown("### Generation Parameters")
|
| 360 |
+
with gr.Row():
|
| 361 |
+
with gr.Column():
|
| 362 |
with gr.Row():
|
| 363 |
+
max_tokens = gr.Slider(label="Max Tokens", value=1024, minimum=256, maximum=MAX_TOKENS, step=256)
|
| 364 |
+
temperature = gr.Slider(label="Temperature", minimum=0.0, maximum=2.0, value=0.7, step=0.1)
|
| 365 |
+
with gr.Row():
|
| 366 |
+
top_k = gr.Slider(label="Top K", value=50, minimum=5, maximum=100, step=5)
|
| 367 |
+
top_p = gr.Slider(label="Top P", minimum=0.0, maximum=1.0, value=0.95, step=0.05)
|
| 368 |
+
with gr.Row():
|
| 369 |
+
system_prompt = gr.Textbox(label="System Prompt (Optional)", lines=3, placeholder="Optional system prompt... e.g., You are a helpful assistant.")
|
|
|
|
|
|
|
| 370 |
|
| 371 |
with gr.Group():
|
| 372 |
gr.Markdown("## User Information, for notification when your job is completed (still TODO)")
|