From 66375acb5c0a3a8eecc4cfa00701b14f21f3ed68 Mon Sep 17 00:00:00 2001 From: meg <90473723+meg-huggingface@users.noreply.github.com> Date: Mon, 11 Nov 2024 03:15:08 -0800 Subject: [PATCH] Fix typo in Exception raised by base.py (#9933) * Fix typo in Exception raised by base.py * add changeset --------- Co-authored-by: gradio-pr-bot --- .changeset/ten-parks-rule.md | 5 +++++ gradio/components/base.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/ten-parks-rule.md diff --git a/.changeset/ten-parks-rule.md b/.changeset/ten-parks-rule.md new file mode 100644 index 0000000000000..d0169860b1f2a --- /dev/null +++ b/.changeset/ten-parks-rule.md @@ -0,0 +1,5 @@ +--- +"gradio": minor +--- + +feat:Fix typo in Exception raised by base.py diff --git a/gradio/components/base.py b/gradio/components/base.py index 53e634754e1b4..f5a89e14b42ab 100644 --- a/gradio/components/base.py +++ b/gradio/components/base.py @@ -448,7 +448,7 @@ def get_component_instance( component_obj = comp else: raise ValueError( - f"Component must provided as a `str` or `dict` or `Component` but is {comp}" + f"Component must be provided as a `str` or `dict` or `Component` but is {comp}" ) if render and not component_obj.is_rendered: