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

Update Gradio_UI.py

Browse files
Files changed (1) hide show
  1. 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
- if not _is_package_available("gradio"):
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
  )