Spaces:
Running on Zero
Running on Zero
alx lord commited on
Update ui/layout.py
Browse files- ui/layout.py +10 -1
ui/layout.py
CHANGED
|
@@ -17,7 +17,16 @@ def build_ui(event_handler_function):
|
|
| 17 |
ui_components.update(create_imagegen_ui())
|
| 18 |
|
| 19 |
gr.Markdown("<div style='text-align: left; margin-top: 20px;'>Made by RioShiina with ❤️<br><a href='https://github.com/RioShiina47' target='_blank'>GitHub</a> | <a href='https://huggingface.co/RioShiina' target='_blank'>Hugging Face</a> | <a href='https://civitai.com/user/RioShiina' target='_blank'>Civitai</a></div>")
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
event_handler_function(ui_components, demo)
|
| 22 |
|
| 23 |
try:
|
|
|
|
| 17 |
ui_components.update(create_imagegen_ui())
|
| 18 |
|
| 19 |
gr.Markdown("<div style='text-align: left; margin-top: 20px;'>Made by RioShiina with ❤️<br><a href='https://github.com/RioShiina47' target='_blank'>GitHub</a> | <a href='https://huggingface.co/RioShiina' target='_blank'>Hugging Face</a> | <a href='https://civitai.com/user/RioShiina' target='_blank'>Civitai</a></div>")
|
| 20 |
+
gr.Markdown("<div style='font-size:12px; opacity:0.7; margin-top:12px;'>Generated images, prompts and settings are saved for research and model-training purposes.</div>")
|
| 21 |
+
|
| 22 |
+
DONE. Optional Space variable: OUTPUTS_REPO (defaults to alxander84/imagegen-outputs).
|
| 23 |
+
The HF_TOKEN secret must hold the NEW token (in the Value field, not Description).
|
| 24 |
+
|
| 25 |
+
RESULT in the dataset:
|
| 26 |
+
<architecture>/<model>/0001.png, 0002.png ... and log.txt
|
| 27 |
+
log.txt entry per image: #0001 | date | 0001.png / Prompt / Negative prompt / Settings
|
| 28 |
+
Images are uploaded in the background in batches (every ~20 s or 16 images).
|
| 29 |
+
|
| 30 |
event_handler_function(ui_components, demo)
|
| 31 |
|
| 32 |
try:
|