Error while using demo in colab
#42
by
Goccobin
- opened
TypeError Traceback (most recent call last)
<ipython-input-12-76855d705b90> in <cell line: 1>()
3 title = 'Stable Diffusion In-Painting',
4 inputs=[
----> 5 gr.Image(source = 'upload', tool = 'sketch', type = 'pil'),
6 gr.Textbox(label = 'prompt')
7 ],
/usr/local/lib/python3.10/dist-packages/gradio/component_meta.py in wrapper(*args, **kwargs)
153 return None
154 else:
--> 155 return fn(self, **kwargs)
156
157 return wrapper
TypeError: Image.init() got an unexpected keyword argument 'source'