Spaces:
Running
Running
Sync from GitHub via hub-sync
Browse files- VERSION +1 -1
- pyproject.toml +2 -0
- test/example +0 -0
- test/smol_agent.py +13 -0
- test/txt +0 -0
- uv.lock +0 -0
VERSION
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
3d3a30720c329276ef3638512b22d6c3fb1ea25f
|
pyproject.toml
CHANGED
|
@@ -5,6 +5,8 @@ description = "Add your description here"
|
|
| 5 |
readme = "README.md"
|
| 6 |
requires-python = ">=3.13"
|
| 7 |
dependencies = [
|
|
|
|
| 8 |
"gradio>=5.49.1",
|
| 9 |
"huggingface-hub>=1.11.0",
|
|
|
|
| 10 |
]
|
|
|
|
| 5 |
readme = "README.md"
|
| 6 |
requires-python = ">=3.13"
|
| 7 |
dependencies = [
|
| 8 |
+
"ddgs>=9.14.1",
|
| 9 |
"gradio>=5.49.1",
|
| 10 |
"huggingface-hub>=1.11.0",
|
| 11 |
+
"smolagents[litellm]>=1.22.0",
|
| 12 |
]
|
test/example
DELETED
|
File without changes
|
test/smol_agent.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from smolagents import CodeAgent, LiteLLMModel
|
| 2 |
+
import os
|
| 3 |
+
|
| 4 |
+
# Using LiteLLMModel is the safest bet for Google/GitHub/HuggingFace
|
| 5 |
+
# because it handles the API translation for you.
|
| 6 |
+
model = LiteLLMModel(
|
| 7 |
+
model_id="gemini/gemini-2.5-flash", # Let's use Gemini to avoid those GitHub HTML errors
|
| 8 |
+
api_key=os.getenv("GOOGLE_API_KEY")
|
| 9 |
+
)
|
| 10 |
+
|
| 11 |
+
agent = CodeAgent(tools=[], model=model)
|
| 12 |
+
|
| 13 |
+
print(agent.run("Success check: Are you online?"))
|
test/txt
DELETED
|
File without changes
|
uv.lock
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|