No module named 'gradio_client'

image_generation_tool = Tool.from_space(
“black-forest-labs/FLUX.1-schnell”,
name=“image_generator”,
description=“Generate an image from a prompt”
)

When I am trying to import the above tool from space I am facing the following error
ModuleNotFoundError: No module named ‘gradio_client’
I have already installed the module and its present in the environment, what may be the possible reason?

1 Like

I thought it was a problem specific to smolagents, but it seems that no one else has experienced this error yet…
Could it be that the Gradio client is installed but Gradio itself is not?