Spaces:
Build error
Build error
Emiir
commited on
Commit
·
4bec246
1
Parent(s):
d5567db
Update app.py
Browse files
app.py
CHANGED
@@ -61,6 +61,7 @@ def send_it1(inputs, noise_level, proc1=proc1):
|
|
61 |
time.sleep(2)
|
62 |
queue.put(prompt_with_noise)
|
63 |
output1 = proc1(prompt_with_noise)
|
|
|
64 |
return output1
|
65 |
|
66 |
|
@@ -111,7 +112,17 @@ with gr.Blocks(css='style.css') as demo:
|
|
111 |
output2 = gr.Image(label="Dreamlike Diffusion 1.0", show_label=False)
|
112 |
|
113 |
run.click(send_it1, inputs=[prompt, noise_level], outputs=[output1])
|
114 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
|
116 |
demo.launch(enable_queue=True, inline=True)
|
117 |
block.queue(concurrency_count=100)
|
|
|
61 |
time.sleep(2)
|
62 |
queue.put(prompt_with_noise)
|
63 |
output1 = proc1(prompt_with_noise)
|
64 |
+
image.save(f"{prompt_list}.png")
|
65 |
return output1
|
66 |
|
67 |
|
|
|
112 |
output2 = gr.Image(label="Dreamlike Diffusion 1.0", show_label=False)
|
113 |
|
114 |
run.click(send_it1, inputs=[prompt, noise_level], outputs=[output1])
|
115 |
+
with gr.Row():
|
116 |
+
gr.HTML(
|
117 |
+
"""
|
118 |
+
<div class="footer">
|
119 |
+
<p><a href=f"/{prompt_list}.png" download>
|
120 |
+
<img src=f"/{prompt_list}.png">
|
121 |
+
</a>
|
122 |
+
</p>
|
123 |
+
</div>
|
124 |
+
"""
|
125 |
+
)
|
126 |
|
127 |
demo.launch(enable_queue=True, inline=True)
|
128 |
block.queue(concurrency_count=100)
|