Spaces:
Running
Running
hysts
commited on
Commit
·
a42f482
1
Parent(s):
0ec55dd
Add api_name
Browse files- gradio_canny2image.py +4 -1
- gradio_depth2image.py +4 -1
- gradio_fake_scribble2image.py +4 -1
- gradio_hed2image.py +4 -1
- gradio_hough2image.py +4 -1
- gradio_normal2image.py +4 -1
- gradio_pose2image.py +4 -1
- gradio_scribble2image.py +4 -1
- gradio_seg2image.py +4 -1
gradio_canny2image.py
CHANGED
@@ -67,5 +67,8 @@ def create_demo(process):
|
|
67 |
image_resolution, ddim_steps, scale, seed, eta, low_threshold,
|
68 |
high_threshold
|
69 |
]
|
70 |
-
run_button.click(fn=process,
|
|
|
|
|
|
|
71 |
return demo
|
|
|
67 |
image_resolution, ddim_steps, scale, seed, eta, low_threshold,
|
68 |
high_threshold
|
69 |
]
|
70 |
+
run_button.click(fn=process,
|
71 |
+
inputs=ips,
|
72 |
+
outputs=[result_gallery],
|
73 |
+
api_name='canny')
|
74 |
return demo
|
gradio_depth2image.py
CHANGED
@@ -61,5 +61,8 @@ def create_demo(process):
|
|
61 |
input_image, prompt, a_prompt, n_prompt, num_samples,
|
62 |
image_resolution, detect_resolution, ddim_steps, scale, seed, eta
|
63 |
]
|
64 |
-
run_button.click(fn=process,
|
|
|
|
|
|
|
65 |
return demo
|
|
|
61 |
input_image, prompt, a_prompt, n_prompt, num_samples,
|
62 |
image_resolution, detect_resolution, ddim_steps, scale, seed, eta
|
63 |
]
|
64 |
+
run_button.click(fn=process,
|
65 |
+
inputs=ips,
|
66 |
+
outputs=[result_gallery],
|
67 |
+
api_name='depth')
|
68 |
return demo
|
gradio_fake_scribble2image.py
CHANGED
@@ -61,5 +61,8 @@ def create_demo(process):
|
|
61 |
input_image, prompt, a_prompt, n_prompt, num_samples,
|
62 |
image_resolution, detect_resolution, ddim_steps, scale, seed, eta
|
63 |
]
|
64 |
-
run_button.click(fn=process,
|
|
|
|
|
|
|
65 |
return demo
|
|
|
61 |
input_image, prompt, a_prompt, n_prompt, num_samples,
|
62 |
image_resolution, detect_resolution, ddim_steps, scale, seed, eta
|
63 |
]
|
64 |
+
run_button.click(fn=process,
|
65 |
+
inputs=ips,
|
66 |
+
outputs=[result_gallery],
|
67 |
+
api_name='fake_scribble')
|
68 |
return demo
|
gradio_hed2image.py
CHANGED
@@ -61,5 +61,8 @@ def create_demo(process):
|
|
61 |
input_image, prompt, a_prompt, n_prompt, num_samples,
|
62 |
image_resolution, detect_resolution, ddim_steps, scale, seed, eta
|
63 |
]
|
64 |
-
run_button.click(fn=process,
|
|
|
|
|
|
|
65 |
return demo
|
|
|
61 |
input_image, prompt, a_prompt, n_prompt, num_samples,
|
62 |
image_resolution, detect_resolution, ddim_steps, scale, seed, eta
|
63 |
]
|
64 |
+
run_button.click(fn=process,
|
65 |
+
inputs=ips,
|
66 |
+
outputs=[result_gallery],
|
67 |
+
api_name='hed')
|
68 |
return demo
|
gradio_hough2image.py
CHANGED
@@ -74,5 +74,8 @@ def create_demo(process):
|
|
74 |
image_resolution, detect_resolution, ddim_steps, scale, seed, eta,
|
75 |
value_threshold, distance_threshold
|
76 |
]
|
77 |
-
run_button.click(fn=process,
|
|
|
|
|
|
|
78 |
return demo
|
|
|
74 |
image_resolution, detect_resolution, ddim_steps, scale, seed, eta,
|
75 |
value_threshold, distance_threshold
|
76 |
]
|
77 |
+
run_button.click(fn=process,
|
78 |
+
inputs=ips,
|
79 |
+
outputs=[result_gallery],
|
80 |
+
api_name='hough')
|
81 |
return demo
|
gradio_normal2image.py
CHANGED
@@ -68,5 +68,8 @@ def create_demo(process):
|
|
68 |
image_resolution, detect_resolution, ddim_steps, scale, seed, eta,
|
69 |
bg_threshold
|
70 |
]
|
71 |
-
run_button.click(fn=process,
|
|
|
|
|
|
|
72 |
return demo
|
|
|
68 |
image_resolution, detect_resolution, ddim_steps, scale, seed, eta,
|
69 |
bg_threshold
|
70 |
]
|
71 |
+
run_button.click(fn=process,
|
72 |
+
inputs=ips,
|
73 |
+
outputs=[result_gallery],
|
74 |
+
api_name='normal')
|
75 |
return demo
|
gradio_pose2image.py
CHANGED
@@ -61,5 +61,8 @@ def create_demo(process):
|
|
61 |
input_image, prompt, a_prompt, n_prompt, num_samples,
|
62 |
image_resolution, detect_resolution, ddim_steps, scale, seed, eta
|
63 |
]
|
64 |
-
run_button.click(fn=process,
|
|
|
|
|
|
|
65 |
return demo
|
|
|
61 |
input_image, prompt, a_prompt, n_prompt, num_samples,
|
62 |
image_resolution, detect_resolution, ddim_steps, scale, seed, eta
|
63 |
]
|
64 |
+
run_button.click(fn=process,
|
65 |
+
inputs=ips,
|
66 |
+
outputs=[result_gallery],
|
67 |
+
api_name='pose')
|
68 |
return demo
|
gradio_scribble2image.py
CHANGED
@@ -56,5 +56,8 @@ def create_demo(process):
|
|
56 |
input_image, prompt, a_prompt, n_prompt, num_samples,
|
57 |
image_resolution, ddim_steps, scale, seed, eta
|
58 |
]
|
59 |
-
run_button.click(fn=process,
|
|
|
|
|
|
|
60 |
return demo
|
|
|
56 |
input_image, prompt, a_prompt, n_prompt, num_samples,
|
57 |
image_resolution, ddim_steps, scale, seed, eta
|
58 |
]
|
59 |
+
run_button.click(fn=process,
|
60 |
+
inputs=ips,
|
61 |
+
outputs=[result_gallery],
|
62 |
+
api_name='scribble')
|
63 |
return demo
|
gradio_seg2image.py
CHANGED
@@ -62,5 +62,8 @@ def create_demo(process):
|
|
62 |
input_image, prompt, a_prompt, n_prompt, num_samples,
|
63 |
image_resolution, detect_resolution, ddim_steps, scale, seed, eta
|
64 |
]
|
65 |
-
run_button.click(fn=process,
|
|
|
|
|
|
|
66 |
return demo
|
|
|
62 |
input_image, prompt, a_prompt, n_prompt, num_samples,
|
63 |
image_resolution, detect_resolution, ddim_steps, scale, seed, eta
|
64 |
]
|
65 |
+
run_button.click(fn=process,
|
66 |
+
inputs=ips,
|
67 |
+
outputs=[result_gallery],
|
68 |
+
api_name='seg')
|
69 |
return demo
|