From 9863415db751d4e19bbfbc2b6f17487ddbbe3df2 Mon Sep 17 00:00:00 2001 From: Raghu Rajan <15613406+RaghuSpaceRajan@users.noreply.github.com> Date: Thu, 2 Nov 2023 15:50:52 +0100 Subject: [PATCH] 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'``` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b505d4a784..d4563c6fb6 100644 --- a/README.md +++ b/README.md @@ -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() ```