Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -157,6 +157,7 @@ def load_image(selected_file):
|
|
| 157 |
def generate_input_image(image_path,input_choice):
|
| 158 |
print(f"image_path: '{image_path}'")
|
| 159 |
print(f"input_choice: '{input_choice}'")
|
|
|
|
| 160 |
# ["Edge image","Segmented image","Depth Image"]
|
| 161 |
if input_choice == "Edge image" :
|
| 162 |
conditioning_image = generate_edgeImage(image_path)
|
|
@@ -256,7 +257,7 @@ with gr.Blocks() as demo:
|
|
| 256 |
#)
|
| 257 |
generate_inp_btn.click(
|
| 258 |
fn=generate_input_image,
|
| 259 |
-
inputs=[file_input
|
| 260 |
outputs=[input_preview]
|
| 261 |
)
|
| 262 |
generate_btn.click(
|
|
|
|
| 157 |
def generate_input_image(image_path,input_choice):
|
| 158 |
print(f"image_path: '{image_path}'")
|
| 159 |
print(f"input_choice: '{input_choice}'")
|
| 160 |
+
image_path = image_path[0]
|
| 161 |
# ["Edge image","Segmented image","Depth Image"]
|
| 162 |
if input_choice == "Edge image" :
|
| 163 |
conditioning_image = generate_edgeImage(image_path)
|
|
|
|
| 257 |
#)
|
| 258 |
generate_inp_btn.click(
|
| 259 |
fn=generate_input_image,
|
| 260 |
+
inputs=[file_input,image_dropdown],
|
| 261 |
outputs=[input_preview]
|
| 262 |
)
|
| 263 |
generate_btn.click(
|