Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,15 +36,15 @@ def get_weather(lat: float, lon: float) -> dict | None:
|
|
| 36 |
|
| 37 |
# Khởi tạo agent
|
| 38 |
weather_agent = CodeAgent(
|
| 39 |
-
model=HfApiModel("deepseek-ai/DeepSeek-R1", max_tokens=8096),
|
| 40 |
tools=[
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
],
|
| 45 |
name="weather_agent",
|
| 46 |
-
|
| 47 |
-
|
| 48 |
)
|
| 49 |
|
| 50 |
# Hàm xử lý chat
|
|
|
|
| 36 |
|
| 37 |
# Khởi tạo agent
|
| 38 |
weather_agent = CodeAgent(
|
| 39 |
+
model=HfApiModel("deepseek-ai/DeepSeek-R1", max_tokens=8096, provider="together"),
|
| 40 |
tools=[
|
| 41 |
+
GoogleSearchTool(provider="serper"),
|
| 42 |
+
VisitWebpageTool(),
|
| 43 |
+
get_weather
|
| 44 |
],
|
| 45 |
name="weather_agent",
|
| 46 |
+
managed_agents=[display_agent],
|
| 47 |
+
description="Fetch the weather condition of the given location."
|
| 48 |
)
|
| 49 |
|
| 50 |
# Hàm xử lý chat
|