Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -105,23 +105,14 @@ def king(type ,
|
|
105 |
instruction = promptifier(instruction)
|
106 |
print(f"AFTER: {instruction} ")
|
107 |
|
108 |
-
|
109 |
prompt = instruction,
|
110 |
negative_prompt = negative_prompt,
|
111 |
width = width,
|
112 |
height = height,
|
113 |
num_inference_steps = (steps/5),
|
114 |
generator = generator,
|
115 |
-
guidance_scale=0.0
|
116 |
-
output_type="latent"
|
117 |
-
).images
|
118 |
-
|
119 |
-
refine = refiner( prompt=instruction,
|
120 |
-
negative_prompt = negative_prompt,
|
121 |
-
guidance_scale = 7.5,
|
122 |
-
num_inference_steps= steps,
|
123 |
-
image=image, generator=generator,
|
124 |
-
).images[0]
|
125 |
return seed, refine
|
126 |
|
127 |
client = InferenceClient()
|
|
|
105 |
instruction = promptifier(instruction)
|
106 |
print(f"AFTER: {instruction} ")
|
107 |
|
108 |
+
refine = pipe(
|
109 |
prompt = instruction,
|
110 |
negative_prompt = negative_prompt,
|
111 |
width = width,
|
112 |
height = height,
|
113 |
num_inference_steps = (steps/5),
|
114 |
generator = generator,
|
115 |
+
guidance_scale=0.0 ).images[0]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
return seed, refine
|
117 |
|
118 |
client = InferenceClient()
|