Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -144,6 +144,14 @@ css = '''
|
|
| 144 |
#title h1{font-size: 3em; display:inline-flex; align-items:center}
|
| 145 |
#title img{width: 100px; margin-right: 0.5em}
|
| 146 |
#gallery .grid-wrap{height: 10vh}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
'''
|
| 148 |
with gr.Blocks(theme=gr.themes.Soft(), css=css) as app:
|
| 149 |
title = gr.HTML(
|
|
@@ -177,6 +185,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as app:
|
|
| 177 |
)
|
| 178 |
|
| 179 |
with gr.Column(scale=4):
|
|
|
|
| 180 |
result = gr.Image(label="Generated Image")
|
| 181 |
|
| 182 |
with gr.Row():
|
|
@@ -206,7 +215,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as app:
|
|
| 206 |
triggers=[generate_button.click, prompt.submit],
|
| 207 |
fn=run_lora,
|
| 208 |
inputs=[prompt, cfg_scale, steps, selected_index, randomize_seed, seed, width, height, lora_scale],
|
| 209 |
-
outputs=[result, seed]
|
| 210 |
)
|
| 211 |
|
| 212 |
app.queue(default_concurrency_limit=2).launch(show_error=True)
|
|
|
|
| 144 |
#title h1{font-size: 3em; display:inline-flex; align-items:center}
|
| 145 |
#title img{width: 100px; margin-right: 0.5em}
|
| 146 |
#gallery .grid-wrap{height: 10vh}
|
| 147 |
+
#lora_list{background: var(--block-background-fill);padding: 0 1em .3em; font-size: 90%}
|
| 148 |
+
.card_internal{display: flex;height: 100px;margin-top: .5em}
|
| 149 |
+
.card_internal img{margin-right: 1em}
|
| 150 |
+
.styler{--form-gap-width: 0px !important}
|
| 151 |
+
#progress{height:30px}
|
| 152 |
+
#progress .generating{display:none}
|
| 153 |
+
.progress-container {width: 100%;height: 30px;background-color: #f0f0f0;border-radius: 15px;overflow: hidden;margin-bottom: 20px}
|
| 154 |
+
.progress-bar {height: 100%;background-color: #4f46e5;width: calc(var(--current) / var(--total) * 100%);transition: width 0.5s ease-in-out}
|
| 155 |
'''
|
| 156 |
with gr.Blocks(theme=gr.themes.Soft(), css=css) as app:
|
| 157 |
title = gr.HTML(
|
|
|
|
| 185 |
)
|
| 186 |
|
| 187 |
with gr.Column(scale=4):
|
| 188 |
+
progress_bar = gr.Markdown(elem_id="progress",visible=False)
|
| 189 |
result = gr.Image(label="Generated Image")
|
| 190 |
|
| 191 |
with gr.Row():
|
|
|
|
| 215 |
triggers=[generate_button.click, prompt.submit],
|
| 216 |
fn=run_lora,
|
| 217 |
inputs=[prompt, cfg_scale, steps, selected_index, randomize_seed, seed, width, height, lora_scale],
|
| 218 |
+
outputs=[result, seed, progress_bar]
|
| 219 |
)
|
| 220 |
|
| 221 |
app.queue(default_concurrency_limit=2).launch(show_error=True)
|