Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -840,7 +840,7 @@ def process(input_image, prompt, a_prompt, n_prompt, num_samples, image_resoluti
|
|
| 840 |
img_txx=[xxsample[i] for i in range (num_samples)]
|
| 841 |
#img_x=asarray(img_x)
|
| 842 |
#return [detected_map] + img_txx
|
| 843 |
-
return
|
| 844 |
|
| 845 |
|
| 846 |
|
|
@@ -868,9 +868,9 @@ with block:
|
|
| 868 |
n_prompt = gr.Textbox(label="Negative Prompt",
|
| 869 |
value='longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality')
|
| 870 |
with gr.Column():
|
| 871 |
-
result_gallery = gr.Textbox()
|
| 872 |
#result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery").style(grid=2, height='auto')
|
| 873 |
-
|
| 874 |
ips = [input_image, prompt, a_prompt, n_prompt, num_samples, image_resolution, detect_resolution, ddim_steps, guess_mode, strength, scale, seed, eta]
|
| 875 |
run_button.click(fn=process, inputs=ips, outputs=result_gallery,api_name="process")
|
| 876 |
|
|
|
|
| 840 |
img_txx=[xxsample[i] for i in range (num_samples)]
|
| 841 |
#img_x=asarray(img_x)
|
| 842 |
#return [detected_map] + img_txx
|
| 843 |
+
return img_x_r
|
| 844 |
|
| 845 |
|
| 846 |
|
|
|
|
| 868 |
n_prompt = gr.Textbox(label="Negative Prompt",
|
| 869 |
value='longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality')
|
| 870 |
with gr.Column():
|
| 871 |
+
#result_gallery = gr.Textbox()
|
| 872 |
#result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery").style(grid=2, height='auto')
|
| 873 |
+
result_gallery = gr.Image(label="Result I")
|
| 874 |
ips = [input_image, prompt, a_prompt, n_prompt, num_samples, image_resolution, detect_resolution, ddim_steps, guess_mode, strength, scale, seed, eta]
|
| 875 |
run_button.click(fn=process, inputs=ips, outputs=result_gallery,api_name="process")
|
| 876 |
|