Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -101,8 +101,10 @@ def king(type ,
|
|
101 |
seed = random.randint(0, 99999)
|
102 |
generator = torch.Generator().manual_seed(seed)
|
103 |
if style=="3D":
|
|
|
104 |
image = pipe_3D( prompt = instruction, guidance_scale = 5, num_inference_steps = steps, width = width, height = height, generator = generator).images[0]
|
105 |
elif style=="Logo":
|
|
|
106 |
image = pipe_logo( prompt = instruction, guidance_scale = 5, num_inference_steps = steps, width = width, height = height, generator = generator).images[0]
|
107 |
else:
|
108 |
image = pipe_best( prompt = instruction, guidance_scale = 5, num_inference_steps = steps, width = width, height = height, generator = generator).images[0]
|
|
|
101 |
seed = random.randint(0, 99999)
|
102 |
generator = torch.Generator().manual_seed(seed)
|
103 |
if style=="3D":
|
104 |
+
instruction = f"3DRenderAF, 3D Render, {instruction}"
|
105 |
image = pipe_3D( prompt = instruction, guidance_scale = 5, num_inference_steps = steps, width = width, height = height, generator = generator).images[0]
|
106 |
elif style=="Logo":
|
107 |
+
instruction = f"LogoRedAF, {instruction}"
|
108 |
image = pipe_logo( prompt = instruction, guidance_scale = 5, num_inference_steps = steps, width = width, height = height, generator = generator).images[0]
|
109 |
else:
|
110 |
image = pipe_best( prompt = instruction, guidance_scale = 5, num_inference_steps = steps, width = width, height = height, generator = generator).images[0]
|