fffiloni commited on
Commit
b9fc3f8
·
verified ·
1 Parent(s): 5486599

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -23
app.py CHANGED
@@ -270,8 +270,8 @@ div#warning-setgpu p.actions > a {
270
  }
271
  div#warning-setsleeptime {
272
  background-color: #fff4eb;
273
- padding: 10px 5px;
274
- margin: 20px 0;
275
  }
276
  """
277
  with gr.Blocks(css=css) as demo:
@@ -321,28 +321,29 @@ with gr.Blocks(css=css) as demo:
321
  image = gr.Image(label="Image Reference", sources=["upload"], type="filepath")
322
 
323
  with gr.Column():
324
-
 
 
 
 
 
 
 
325
 
326
- current_sleep_time = gr.Dropdown(
327
- label="current space sleep time",
328
- choices = [
329
- "Don't sleep", "5 minutes", "15 minutes", "30 minutes", "1 hour", "10 hours", "24 hours", "48 hours", "72 hours", "1 week"
330
- ]
331
- )
332
- sleep_time_message = gr.HTML('''
333
- <div class="gr-prose">
334
- <p>First of all, please make sure your space's sleep time value is set on long enough, so it do not fall asleep during training. </p>
335
- <p>Set it to <strong>"Don't sleep"</strong> or <strong>more than 1 hour</strong> to be safe.</p>
336
- <p>Don't worry, after training is finished, sleep time will be back to 5 minutes.</p>
337
- </div>
338
- ''', elem_id="warning-setsleeptime")
339
- training_type = gr.Radio(label="Training type", choices=["style", "concept"], value="style", visible=False)
340
- b_lora_name = gr.Textbox(label="Name your B-LoRa model", placeholder="b_lora_trained_folder", visible=False)
341
- with gr.Row():
342
- instance_prompt = gr.Textbox(label="Create instance prompt", placeholder="A [v42] <class_prompt>", visible=False)
343
- class_prompt = gr.Textbox(label="Specify class prompt", placeholder="style | person | dog ", visible=False)
344
- training_steps = gr.Number(label="Training steps", value=1000, interactive=False, visible=False)
345
- checkpoint_step = gr.Number(label="checkpoint step", visible=False, value=500)
346
 
347
 
348
 
 
270
  }
271
  div#warning-setsleeptime {
272
  background-color: #fff4eb;
273
+ padding: 10px 10px;
274
+ margin: 0!important;
275
  }
276
  """
277
  with gr.Blocks(css=css) as demo:
 
321
  image = gr.Image(label="Image Reference", sources=["upload"], type="filepath")
322
 
323
  with gr.Column():
324
+
325
+ sleep_time_message = gr.HTML('''
326
+ <div class="gr-prose">
327
+ <p>First of all, please make sure your space's sleep time value is set on long enough, so it do not fall asleep during training. </p>
328
+ <p>Set it to <strong>"Don't sleep"</strong> or <strong>more than 1 hour</strong> to be safe.</p>
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
+ )
339
+
340
+ training_type = gr.Radio(label="Training type", choices=["style", "concept"], value="style", visible=False)
341
+ b_lora_name = gr.Textbox(label="Name your B-LoRa model", placeholder="b_lora_trained_folder", visible=False)
342
+ with gr.Row():
343
+ instance_prompt = gr.Textbox(label="Create instance prompt", placeholder="A [v42] <class_prompt>", visible=False)
344
+ class_prompt = gr.Textbox(label="Specify class prompt", placeholder="style | person | dog ", visible=False)
345
+ training_steps = gr.Number(label="Training steps", value=1000, interactive=False, visible=False)
346
+ checkpoint_step = gr.Number(label="checkpoint step", visible=False, value=500)
 
 
 
 
 
 
347
 
348
 
349