debugging
Browse files
app.py
CHANGED
@@ -216,16 +216,16 @@ with gr.Blocks() as demo:
|
|
216 |
# examples_per_page=64,
|
217 |
# )
|
218 |
|
219 |
-
#
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
|
230 |
# generate_btn.click(
|
231 |
# image_to_3d,
|
|
|
216 |
# examples_per_page=64,
|
217 |
# )
|
218 |
|
219 |
+
# Handlers
|
220 |
+
image_prompt.upload(
|
221 |
+
preprocess_image,
|
222 |
+
inputs=[image_prompt],
|
223 |
+
outputs=[trial_id, image_prompt],
|
224 |
+
)
|
225 |
+
image_prompt.clear(
|
226 |
+
lambda: '',
|
227 |
+
outputs=[trial_id],
|
228 |
+
)
|
229 |
|
230 |
# generate_btn.click(
|
231 |
# image_to_3d,
|