Co-authored-by: Aksel <aksel@huggingface.co> Co-authored-by: Albert Villanova del Moral <8515462+albertvillanova@users.noreply.github.com> Co-authored-by: Aymeric <aymeric.roucher@gmail.com>
16 lines
472 B
Python
16 lines
472 B
Python
from smolagents import CodeAgent, GradioUI, InferenceClientModel
|
|
|
|
|
|
agent = CodeAgent(
|
|
tools=[],
|
|
model=InferenceClientModel(model_id="meta-llama/Llama-3.3-70B-Instruct", provider="fireworks-ai"),
|
|
verbosity_level=1,
|
|
planning_interval=3,
|
|
name="example_agent",
|
|
description="This is an example agent.",
|
|
step_callbacks=[],
|
|
stream_outputs=False,
|
|
use_structured_outputs_internally=True,
|
|
)
|
|
|
|
GradioUI(agent, file_upload_folder="./data").launch()
|