Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -149,7 +149,6 @@ with gr.Blocks(css=css) as demo:
|
|
| 149 |
</div>
|
| 150 |
"""
|
| 151 |
)
|
| 152 |
-
# gr.Markdown(f"Running on: {device}", elem_id="markdown_device")
|
| 153 |
with gr.Row():
|
| 154 |
|
| 155 |
with gr.Column():
|
|
@@ -173,8 +172,8 @@ with gr.Blocks(css=css) as demo:
|
|
| 173 |
image_out = gr.Image(height=512)
|
| 174 |
|
| 175 |
inputs = [model_name, prompt, guidance, steps, width, height, seed, image, strength, neg_prompt]
|
| 176 |
-
prompt.submit(inference, inputs=inputs, outputs=image_out)
|
| 177 |
-
run.click(inference, inputs=inputs, outputs=image_out)
|
| 178 |
|
| 179 |
gr.Examples([
|
| 180 |
[models[0].name, "jason bateman disassembling the demon core", 7.5, 50],
|
|
|
|
| 149 |
</div>
|
| 150 |
"""
|
| 151 |
)
|
|
|
|
| 152 |
with gr.Row():
|
| 153 |
|
| 154 |
with gr.Column():
|
|
|
|
| 172 |
image_out = gr.Image(height=512)
|
| 173 |
|
| 174 |
inputs = [model_name, prompt, guidance, steps, width, height, seed, image, strength, neg_prompt]
|
| 175 |
+
prompt.submit(inference, inputs=inputs, outputs=image_out, scroll_to_output=True)
|
| 176 |
+
run.click(inference, inputs=inputs, outputs=image_out, scroll_to_output=True)
|
| 177 |
|
| 178 |
gr.Examples([
|
| 179 |
[models[0].name, "jason bateman disassembling the demon core", 7.5, 50],
|