smolagents/examples/gradio_upload.py
Lucain 1f8fd72acb
Clean makefile, pyproject.toml and CI (#229)
* Clean makefile / pyproject.toml / .github

* new tests after

* add back sqlalchemy

* disable docs tests in CI

* continue on error

* correct continue on error

* Remove all_docs test
2025-01-17 13:18:06 +01:00

5 lines
191 B
Python

from smolagents import CodeAgent, HfApiModel, GradioUI
agent = CodeAgent(tools=[], model=HfApiModel(), max_steps=4, verbosity_level=1)
GradioUI(agent, file_upload_folder="./data").launch()