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:
Raghu Rajan 2023-11-02 15:50:52 +01:00 committed by GitHub
parent 185f9aa156
commit 9863415db7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,7 +163,7 @@ def sepia(input_img):
sepia_img /= sepia_img.max()
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()
```