fffiloni commited on
Commit
b8c83a5
·
verified ·
1 Parent(s): ce34462

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -209,7 +209,7 @@ with gr.Blocks(css=css) as demo:
209
  training_type = gr.Radio(label="Training type", choices=["style", "concept"], value="style")
210
  b_lora_name = gr.Textbox(label="Name your B-LoRa model", placeholder="b_lora_trained_folder")
211
  instance_prompt = gr.Textbox(label="Create instance prompt", placeholder="[v42]")
212
- training_steps = gr.Number(label="Training steps", value=1000)
213
  checkpoint_step = gr.Number(label="checkpoint step", visible=False, value=500)
214
  train_btn = gr.Button("Train B-LoRa")
215
  status = gr.Textbox(label="status")
@@ -222,7 +222,7 @@ with gr.Blocks(css=css) as demo:
222
 
223
  train_btn.click(
224
  fn = main,
225
- inputs = [image, b_lora_name, instance_prompt],
226
  outputs = [status]
227
  )
228
 
 
209
  training_type = gr.Radio(label="Training type", choices=["style", "concept"], value="style")
210
  b_lora_name = gr.Textbox(label="Name your B-LoRa model", placeholder="b_lora_trained_folder")
211
  instance_prompt = gr.Textbox(label="Create instance prompt", placeholder="[v42]")
212
+ training_steps = gr.Number(label="Training steps", value=1000, interactive=False)
213
  checkpoint_step = gr.Number(label="checkpoint step", visible=False, value=500)
214
  train_btn = gr.Button("Train B-LoRa")
215
  status = gr.Textbox(label="status")
 
222
 
223
  train_btn.click(
224
  fn = main,
225
+ inputs = [image, b_lora_name, instance_prompt, training_type],
226
  outputs = [status]
227
  )
228