Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,6 @@ def transform_image(image) -> torch.Tensor:
|
|
66 |
T.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225]),
|
67 |
|
68 |
])
|
69 |
-
|
70 |
image_transformed, _ = transform(image, None)
|
71 |
return image_transformed
|
72 |
|
@@ -307,4 +306,4 @@ with image_blocks as demo:
|
|
307 |
|
308 |
btn.click(fn=main_fun, inputs=[image, x_units, y_units, text_prompt, box_threshold, text_threshold, inpaint_text_prompt, num_inference_steps, sam_type, inpainting_model], outputs=[image_out_seg, image_out_shift])
|
309 |
|
310 |
-
image_blocks.launch()
|
|
|
66 |
T.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225]),
|
67 |
|
68 |
])
|
|
|
69 |
image_transformed, _ = transform(image, None)
|
70 |
return image_transformed
|
71 |
|
|
|
306 |
|
307 |
btn.click(fn=main_fun, inputs=[image, x_units, y_units, text_prompt, box_threshold, text_threshold, inpaint_text_prompt, num_inference_steps, sam_type, inpainting_model], outputs=[image_out_seg, image_out_shift])
|
308 |
|
309 |
+
image_blocks.launch(share=True)
|