tykiww commited on
Commit
a5e8844
·
verified ·
1 Parent(s): 9e53c43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,7 +24,7 @@ def upload_visibility(radio):
24
  else:
25
  return gr.UploadButton(visible=bool(0))
26
 
27
- def greet(model_name, prompt_template, name, dataset):
28
  """The model call"""
29
  return f"Hello {name}!! Using model: {model_name} with template: {inject_prompt}"
30
 
@@ -64,7 +64,7 @@ with gr.Blocks() as demo:
64
  tune_btn = gr.Button("Start Fine Tuning")
65
  # Execute button
66
  tune_btn.click(fn=greet,
67
- inputs=[model_name, prompt_template, name_input, dataset_predefined],
68
  outputs=output)
69
 
70
  ##################################### Launch #######################################
 
24
  else:
25
  return gr.UploadButton(visible=bool(0))
26
 
27
+ def greet(model_name, inject_prompt, name, dataset):
28
  """The model call"""
29
  return f"Hello {name}!! Using model: {model_name} with template: {inject_prompt}"
30
 
 
64
  tune_btn = gr.Button("Start Fine Tuning")
65
  # Execute button
66
  tune_btn.click(fn=greet,
67
+ inputs=[model_name, inject_prompt, name_input, dataset_predefined],
68
  outputs=output)
69
 
70
  ##################################### Launch #######################################