Spaces:
Build error
Build error
Update Gradio_UI.py
Browse files- Gradio_UI.py +1 -1
Gradio_UI.py
CHANGED
|
@@ -194,7 +194,7 @@ class GradioUI:
|
|
| 194 |
"""A one-line interface to launch your agent in Gradio"""
|
| 195 |
|
| 196 |
def __init__(self, agent: MultiStepAgent, file_upload_folder: str | None = None):
|
| 197 |
-
|
| 198 |
raise ModuleNotFoundError(
|
| 199 |
"Please install 'gradio' extra to use the GradioUI: `pip install 'smolagents[gradio]'`"
|
| 200 |
)
|
|
|
|
| 194 |
"""A one-line interface to launch your agent in Gradio"""
|
| 195 |
|
| 196 |
def __init__(self, agent: MultiStepAgent, file_upload_folder: str | None = None):
|
| 197 |
+
if not _is_package_available("gradio"):
|
| 198 |
raise ModuleNotFoundError(
|
| 199 |
"Please install 'gradio' extra to use the GradioUI: `pip install 'smolagents[gradio]'`"
|
| 200 |
)
|