diff --git a/src/smolagents/tools.py b/src/smolagents/tools.py index ab3568e92..6d3e62b06 100644 --- a/src/smolagents/tools.py +++ b/src/smolagents/tools.py @@ -633,7 +633,7 @@ def launch_gradio_demo(tool: Tool): `inputs` and `output_type`. Args: - tool (`type`): The tool for which to launch the demo. + tool (`Tool`): The tool for which to launch the demo. """ try: import gradio as gr @@ -667,7 +667,6 @@ def tool_forward(*args, **kwargs): inputs=gradio_inputs, outputs=gradio_output, title=tool.name, - article=tool.description, description=tool.description, api_name=tool.name, ).launch()