Spaces:
Build error
Build error
Update Gradio_UI.py
Browse files- Gradio_UI.py +2 -4
Gradio_UI.py
CHANGED
|
@@ -191,12 +191,10 @@ def stream_to_gradio(
|
|
| 191 |
|
| 192 |
|
| 193 |
class GradioUI:
|
| 194 |
-
|
| 195 |
|
| 196 |
def __init__(self, agent: MultiStepAgent, file_upload_folder: str | None = None):
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
if not _is_package_available("gradio"):
|
| 200 |
raise ModuleNotFoundError(
|
| 201 |
"Please install 'gradio' extra to use the GradioUI: `pip install 'smolagents[gradio]'`"
|
| 202 |
)
|
|
|
|
| 191 |
|
| 192 |
|
| 193 |
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 |
+
if not _is_package_available("gradio"):
|
|
|
|
|
|
|
| 198 |
raise ModuleNotFoundError(
|
| 199 |
"Please install 'gradio' extra to use the GradioUI: `pip install 'smolagents[gradio]'`"
|
| 200 |
)
|