Upload folder using huggingface_hub
Browse files- README.md +2 -8
- gr.py +11 -0
- requirements.txt +2 -0
README.md
CHANGED
@@ -1,12 +1,6 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
|
4 |
-
colorFrom: blue
|
5 |
-
colorTo: blue
|
6 |
sdk: gradio
|
7 |
sdk_version: 5.15.0
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
---
|
11 |
-
|
12 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: smolagent
|
3 |
+
app_file: gr.py
|
|
|
|
|
4 |
sdk: gradio
|
5 |
sdk_version: 5.15.0
|
|
|
|
|
6 |
---
|
|
|
|
gr.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from smolagents import GradioUI, CodeAgent, DuckDuckGoSearchTool, HfApiModel
|
2 |
+
|
3 |
+
# model = HfApiModel()
|
4 |
+
model = HfApiModel(
|
5 |
+
model_id="deepseek-ai/DeepSeek-R1",
|
6 |
+
provider="together",
|
7 |
+
)
|
8 |
+
agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model)
|
9 |
+
|
10 |
+
|
11 |
+
GradioUI(agent).launch()
|
requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
smolagents
|
2 |
+
gradio
|