Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -121,9 +121,6 @@ def process_canny(input_image,x ,y, prompt, a_prompt, n_prompt, num_samples, ima
|
|
| 121 |
|
| 122 |
image = input_image
|
| 123 |
|
| 124 |
-
print(strength)
|
| 125 |
-
|
| 126 |
-
|
| 127 |
return canny_pipe(
|
| 128 |
prompt=','.join([prompt,a_prompt]),
|
| 129 |
image=image,
|
|
@@ -206,7 +203,7 @@ with demo:
|
|
| 206 |
value='longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality')
|
| 207 |
|
| 208 |
with gr.Column():
|
| 209 |
-
result = gr.outputs.Image(label='Output', type="
|
| 210 |
|
| 211 |
ips = [input_image, input_prompt, a_prompt, n_prompt, ddim_steps, strength, scale, seed, eta, low_threshold, high_threshold]
|
| 212 |
run_button.click(fn=process, inputs=ips, outputs=[result])
|
|
|
|
| 121 |
|
| 122 |
image = input_image
|
| 123 |
|
|
|
|
|
|
|
|
|
|
| 124 |
return canny_pipe(
|
| 125 |
prompt=','.join([prompt,a_prompt]),
|
| 126 |
image=image,
|
|
|
|
| 203 |
value='longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality')
|
| 204 |
|
| 205 |
with gr.Column():
|
| 206 |
+
result = gr.outputs.Image(label='Output', type="numpy")
|
| 207 |
|
| 208 |
ips = [input_image, input_prompt, a_prompt, n_prompt, ddim_steps, strength, scale, seed, eta, low_threshold, high_threshold]
|
| 209 |
run_button.click(fn=process, inputs=ips, outputs=[result])
|