Spaces:
Configuration error
Configuration error
Sreerama
commited on
Commit
·
c5dc161
1
Parent(s):
48448cb
add badge when running
Browse files
app.py
CHANGED
@@ -364,15 +364,35 @@ def check_status(top_description):
|
|
364 |
''')
|
365 |
else:
|
366 |
update_top_tag = gr.update(value=f'''
|
367 |
-
<div
|
368 |
-
|
369 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
370 |
</div>
|
371 |
''')
|
372 |
show_outputs = True
|
373 |
elif os.path.exists("intraining.lock"):
|
374 |
update_top_tag = gr.update(value='''
|
375 |
-
<div
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
376 |
<h2>Don't worry, your model is still training! ⌛</h2>
|
377 |
<p>You closed the tab while your model was training, but it's all good! It is still training right now. You can click the "Open logs" button above here to check the training status. Once training is done, reload this tab to interact with your model</p>
|
378 |
</div>
|
|
|
364 |
''')
|
365 |
else:
|
366 |
update_top_tag = gr.update(value=f'''
|
367 |
+
<div style="text-align: center; max-width: 650px; margin: 0 auto;">
|
368 |
+
<div>
|
369 |
+
<img class="logo" src="file/mirage.png" alt="Mirage Logo"
|
370 |
+
style="margin: auto; max-width: 7rem;">
|
371 |
+
<br />
|
372 |
+
<h1 style="font-weight: 900; font-size: 2.5rem;">
|
373 |
+
Dreambooth Web UI
|
374 |
+
</h1>
|
375 |
+
</div>
|
376 |
+
<br />
|
377 |
+
<br />
|
378 |
+
<h2>Your model has finished training ✅</h2>
|
379 |
+
<p>Yay, congratulations on training your model. Scroll down to play with with it, save it (either downloading it or on the Hugging Face Hub).</p>
|
380 |
</div>
|
381 |
''')
|
382 |
show_outputs = True
|
383 |
elif os.path.exists("intraining.lock"):
|
384 |
update_top_tag = gr.update(value='''
|
385 |
+
<div style="text-align: center; max-width: 650px; margin: 0 auto;">
|
386 |
+
<div>
|
387 |
+
<img class="logo" src="file/mirage.png" alt="Mirage Logo"
|
388 |
+
style="margin: auto; max-width: 7rem;">
|
389 |
+
<br />
|
390 |
+
<h1 style="font-weight: 900; font-size: 2.5rem;">
|
391 |
+
Dreambooth Web UI
|
392 |
+
</h1>
|
393 |
+
</div>
|
394 |
+
<br />
|
395 |
+
<br />
|
396 |
<h2>Don't worry, your model is still training! ⌛</h2>
|
397 |
<p>You closed the tab while your model was training, but it's all good! It is still training right now. You can click the "Open logs" button above here to check the training status. Once training is done, reload this tab to interact with your model</p>
|
398 |
</div>
|