Spaces:
Runtime error
Runtime error
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,8 +16,8 @@ pool = ProcessPoolExecutor(4)
|
|
| 16 |
pool.__enter__()
|
| 17 |
|
| 18 |
#model_id = "runwayml/stable-diffusion-v1-5"
|
| 19 |
-
model_id = "kandinsky-community/kandinsky-3"
|
| 20 |
-
|
| 21 |
|
| 22 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 23 |
if torch.cuda.is_available():
|
|
@@ -77,7 +77,7 @@ def Piper(_do):
|
|
| 77 |
_do,
|
| 78 |
height=512,
|
| 79 |
width=768,
|
| 80 |
-
|
| 81 |
num_inference_steps=40,
|
| 82 |
guidance_scale=10
|
| 83 |
)
|
|
|
|
| 16 |
pool.__enter__()
|
| 17 |
|
| 18 |
#model_id = "runwayml/stable-diffusion-v1-5"
|
| 19 |
+
#model_id = "kandinsky-community/kandinsky-3"
|
| 20 |
+
model_id = "stabilityai/stable-diffusion-3-medium-diffusers"
|
| 21 |
|
| 22 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 23 |
if torch.cuda.is_available():
|
|
|
|
| 77 |
_do,
|
| 78 |
height=512,
|
| 79 |
width=768,
|
| 80 |
+
negative_prompt='ugly, deformed, disfigured, poor details, bad anatomy, labels, texts, logos',
|
| 81 |
num_inference_steps=40,
|
| 82 |
guidance_scale=10
|
| 83 |
)
|