Skip to content

Commit dfbf60b

Browse files
authored
bit of formatting
1 parent 38bcfa4 commit dfbf60b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/hub/agents.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ To learn more about write actions in code vs JSON, check out our [new short cour
1212

1313
If you want to avoid defining agents yourself, the easiest way to start an agent is through the CLI, using the `smolagent` command.
1414

15-
```python
15+
```
1616
smolagent "Plan a trip to Tokyo, Kyoto and Osaka between Mar 28 and Apr 7." --model-type "InferenceClientModel" --model-id "Qwen/Qwen2.5-Coder-32B-Instruct" --imports "pandas numpy" --tools "web_search"
1717
```
1818

1919
Agents can be pushed to Hugging Face Hub as Spaces. Check out all the cool agents people have built [here](https://huggingface.co/spaces?filter=smolagents&sort=likes).
2020

2121
smolagents also support MCP servers as tools, as follows:
22+
2223
```python
2324
from smolagents import MCPClient, CodeAgent
2425
from mcp import StdioServerParameters
@@ -62,7 +63,6 @@ You can build an MCP server in just a few lines of Python with Gradio. If you ha
6263
To make a Gradio application an MCP server, simply pass in `mcp_server=True` when launching your demo like follows.
6364

6465
```python
65-
6666
def generate_image(prompt: str):
6767
"""
6868
Generate an image based on a text prompt

0 commit comments

Comments
 (0)