fffiloni commited on
Commit
3760f4f
·
verified ·
1 Parent(s): 40637a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -16
app.py CHANGED
@@ -329,22 +329,23 @@ with gr.Blocks(css=css) as demo:
329
  <p>Don't worry, after training is finished, sleep time will be back to 5 minutes.</p>
330
  </div>
331
  ''', elem_id="warning-setsleeptime")
332
-
333
- current_sleep_time = gr.Dropdown(
334
- label="current space sleep time",
335
- choices = [
336
- "Don't sleep", "5 minutes", "15 minutes", "30 minutes", "1 hour", "10 hours", "24 hours", "48 hours", "72 hours", "1 week"
337
- ],
338
- filterable=False
339
- )
340
-
341
- training_type = gr.Radio(label="Training type", choices=["style", "concept"], value="style", visible=False)
342
- b_lora_name = gr.Textbox(label="Name your B-LoRa model", placeholder="b_lora_trained_folder", visible=False)
343
- with gr.Row():
344
- instance_prompt = gr.Textbox(label="Create instance prompt", placeholder="A [v42] <class_prompt>", visible=False)
345
- class_prompt = gr.Textbox(label="Specify class prompt", placeholder="style | person | dog ", visible=False)
346
- training_steps = gr.Number(label="Training steps", value=1000, interactive=False, visible=False)
347
- checkpoint_step = gr.Number(label="checkpoint step", visible=False, value=500)
 
348
 
349
 
350
 
 
329
  <p>Don't worry, after training is finished, sleep time will be back to 5 minutes.</p>
330
  </div>
331
  ''', elem_id="warning-setsleeptime")
332
+
333
+ with gr.Group():
334
+ current_sleep_time = gr.Dropdown(
335
+ label="current space sleep time",
336
+ choices = [
337
+ "Don't sleep", "5 minutes", "15 minutes", "30 minutes", "1 hour", "10 hours", "24 hours", "48 hours", "72 hours", "1 week"
338
+ ],
339
+ filterable=False
340
+ )
341
+
342
+ training_type = gr.Radio(label="Training type", choices=["style", "concept"], value="style", visible=False)
343
+ b_lora_name = gr.Textbox(label="Name your B-LoRa model", placeholder="b_lora_trained_folder", visible=False)
344
+ with gr.Row():
345
+ instance_prompt = gr.Textbox(label="Create instance prompt", placeholder="A [v42] <class_prompt>", visible=False)
346
+ class_prompt = gr.Textbox(label="Specify class prompt", placeholder="style | person | dog ", visible=False)
347
+ training_steps = gr.Number(label="Training steps", value=1000, interactive=False, visible=False)
348
+ checkpoint_step = gr.Number(label="checkpoint step", visible=False, value=500)
349
 
350
 
351