uasername commited on
Commit
e8c93cf
·
verified ·
1 Parent(s): f054738

Update Gradio_UI.py

Browse files
Files changed (1) hide show
  1. Gradio_UI.py +2 -4
Gradio_UI.py CHANGED
@@ -191,12 +191,10 @@ def stream_to_gradio(
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
- self.agent = agent # Передаём агента внутрь класса
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
  )