mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-18 10:44:33 +08:00
Update README.md to correct example which throws error when using "shape" as an argument to Image (#6251)
"shape" does not seem to be a keyword any more and an error is thrown upon using it: ```TypeError: __init__() got an unexpected keyword argument 'shape'```
This commit is contained in:
parent
185f9aa156
commit
9863415db7
@ -163,7 +163,7 @@ def sepia(input_img):
|
|||||||
sepia_img /= sepia_img.max()
|
sepia_img /= sepia_img.max()
|
||||||
return sepia_img
|
return sepia_img
|
||||||
|
|
||||||
demo = gr.Interface(sepia, gr.Image(shape=(200, 200)), "image")
|
demo = gr.Interface(sepia, gr.Image(width=200, height=200), "image")
|
||||||
demo.launch()
|
demo.launch()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user