isl-org / ZoeDepth

Metric depth estimation from a single image
MIT License
2.36k stars 216 forks source link

AttributeError: 'Image' object has no attribute 'style'. Did you mean: 'scale'? #91

Open bh-uv-an opened 1 year ago

bh-uv-an commented 1 year ago

input_image = gr.Image(label="Input Image", type='pil', elem_id='img-display-input').style(height="auto") AttributeError: 'Image' object has no attribute 'style'. Did you mean: 'scale'?

Someone please solve this problem

richardmarcus commented 1 year ago

Hi, just had the same problem, it seems the newer gradio 4.x versions are not compatible,

pip install gradio==3.41.2

fixed it for me.