Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -322,29 +322,29 @@ with gr.Blocks(css=css) as demo:
|
|
322 |
|
323 |
with gr.Column():
|
324 |
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
|
349 |
|
350 |
|
|
|
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 |
+
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 |
|