Fix installation instruction for GradioUI in error message (#418)
This commit is contained in:
parent
20383f0914
commit
37f549f4aa
|
@ -181,7 +181,7 @@ class GradioUI:
|
||||||
def __init__(self, agent: MultiStepAgent, file_upload_folder: str | None = None):
|
def __init__(self, agent: MultiStepAgent, file_upload_folder: str | None = None):
|
||||||
if not _is_package_available("gradio"):
|
if not _is_package_available("gradio"):
|
||||||
raise ModuleNotFoundError(
|
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.agent = agent
|
||||||
self.file_upload_folder = file_upload_folder
|
self.file_upload_folder = file_upload_folder
|
||||||
|
|
Loading…
Reference in New Issue