bebechien commited on
Commit
2cfd82c
·
verified ·
1 Parent(s): 99bb79f

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. ui.py +4 -4
ui.py CHANGED
@@ -14,7 +14,7 @@ def build_interface(engine: FunctionGemmaEngine) -> gr.Blocks:
14
 
15
  with gr.Row():
16
  with gr.Column(scale=1):
17
- gr.Markdown("**Step 1: Define Functions**\n\nEdit the JSON schema below to define the tools the model should learn.")
18
  tools_editor = gr.Code(
19
  value=engine.get_tools_json(),
20
  language="json",
@@ -25,8 +25,8 @@ def build_interface(engine: FunctionGemmaEngine) -> gr.Blocks:
25
  tools_status = gr.Markdown("")
26
 
27
  with gr.Column(scale=1):
28
- gr.Markdown("**Step 2: Upload Data (Optional)**\n\nUpload a CSV file to replace the default dataset ([bebechien/SimpleToolCalling](https://huggingface.co/datasets/bebechien/SimpleToolCalling)).")
29
- gr.Markdown("**Example CSV Row:**<br>Format: `[User Prompt, Tool Name, Tool Args JSON]`\n```csv\n\"What is the weather in London?\", \"get_weather\", \"{\"\"location\"\": \"\"London, UK\"\"}\"\n```")
30
  import_file = gr.File(
31
  label="Upload Dataset (.csv)",
32
  file_types=[".csv"],
@@ -57,7 +57,7 @@ def build_interface(engine: FunctionGemmaEngine) -> gr.Blocks:
57
  param_shuffle = gr.Checkbox(
58
  value=True,
59
  label="Shuffle Data",
60
- info="Randomize before split"
61
  )
62
 
63
  with gr.Row():
 
14
 
15
  with gr.Row():
16
  with gr.Column(scale=1):
17
+ gr.Markdown("**Step 1: Define Functions**<br>Edit the JSON schema below to define the tools the model should learn.")
18
  tools_editor = gr.Code(
19
  value=engine.get_tools_json(),
20
  language="json",
 
25
  tools_status = gr.Markdown("")
26
 
27
  with gr.Column(scale=1):
28
+ gr.Markdown("**Step 2: Upload Data (Optional)**<br>To train on your own data, upload a CSV file to replace the [default dataset](https://huggingface.co/datasets/bebechien/SimpleToolCalling).")
29
+ gr.Markdown("**Example CSV Row:** No header required.<br>Format: `[User Prompt, Tool Name, Tool Args JSON]`\n```csv\n\"What is the weather in London?\", \"get_weather\", \"{\"\"location\"\": \"\"London, UK\"\"}\"\n```")
30
  import_file = gr.File(
31
  label="Upload Dataset (.csv)",
32
  file_types=[".csv"],
 
57
  param_shuffle = gr.Checkbox(
58
  value=True,
59
  label="Shuffle Data",
60
+ info="Randomize before split\nWhen unchecking this for your own custom datasets, ensure your source data is pre-mixed. If the distribution is unknown or sorted, you should check this to ensure the model learns a balanced representation of all tools during training."
61
  )
62
 
63
  with gr.Row():