From 37f549f4aab2458cb081ae79e148cad808e27095 Mon Sep 17 00:00:00 2001 From: Jan <5099251+jank@users.noreply.github.com> Date: Thu, 30 Jan 2025 13:25:53 +0100 Subject: [PATCH] Fix installation instruction for GradioUI in error message (#418) --- src/smolagents/gradio_ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smolagents/gradio_ui.py b/src/smolagents/gradio_ui.py index bc367aa..9491746 100644 --- a/src/smolagents/gradio_ui.py +++ b/src/smolagents/gradio_ui.py @@ -181,7 +181,7 @@ class GradioUI: def __init__(self, agent: MultiStepAgent, file_upload_folder: str | None = None): if not _is_package_available("gradio"): raise ModuleNotFoundError( - "Please install 'gradio' extra to use the GradioUI: `pip install 'smolagents[audio]'`" + "Please install 'gradio' extra to use the GradioUI: `pip install 'smolagents[gradio]'`" ) self.agent = agent self.file_upload_folder = file_upload_folder