Spaces:
Sleeping
Sleeping
Dmitry Trifonov
commited on
Commit
·
5d69e43
1
Parent(s):
bdc1919
update model card
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import numpy as np
|
|
3 |
|
4 |
from text_to_image import text_to_image
|
5 |
|
6 |
-
model_id = "
|
7 |
device = "cuda"
|
8 |
|
9 |
|
@@ -183,10 +183,8 @@ with block:
|
|
183 |
label="Generated images", show_label=False, elem_id="gallery"
|
184 |
).style(grid=[1], height="auto")
|
185 |
|
186 |
-
|
187 |
text.submit(infer, inputs=text, outputs=[gallery])
|
188 |
btn.click(infer, inputs=text, outputs=[gallery])
|
189 |
-
|
190 |
|
191 |
gr.HTML(
|
192 |
"""
|
@@ -196,4 +194,4 @@ with block:
|
|
196 |
"""
|
197 |
)
|
198 |
|
199 |
-
block.queue(concurrency_count=40, max_size=20).launch(max_threads=150)
|
|
|
3 |
|
4 |
from text_to_image import text_to_image
|
5 |
|
6 |
+
model_id = "lykon/dreamshaper-8"
|
7 |
device = "cuda"
|
8 |
|
9 |
|
|
|
183 |
label="Generated images", show_label=False, elem_id="gallery"
|
184 |
).style(grid=[1], height="auto")
|
185 |
|
|
|
186 |
text.submit(infer, inputs=text, outputs=[gallery])
|
187 |
btn.click(infer, inputs=text, outputs=[gallery])
|
|
|
188 |
|
189 |
gr.HTML(
|
190 |
"""
|
|
|
194 |
"""
|
195 |
)
|
196 |
|
197 |
+
block.queue(concurrency_count=40, max_size=20).launch(max_threads=150)
|