Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from smolagents import CodeAgent,
|
| 2 |
from tavily import TavilyClient
|
| 3 |
import os
|
| 4 |
import spaces
|
|
@@ -48,7 +48,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 48 |
|
| 49 |
@tool
|
| 50 |
def web_search(query: str) -> str:
|
| 51 |
-
"""
|
| 52 |
|
| 53 |
Args:
|
| 54 |
query: The search term or question to look up on the web.
|
|
|
|
| 1 |
+
from smolagents import CodeAgent,HfApiModel,load_tool,tool
|
| 2 |
from tavily import TavilyClient
|
| 3 |
import os
|
| 4 |
import spaces
|
|
|
|
| 48 |
|
| 49 |
@tool
|
| 50 |
def web_search(query: str) -> str:
|
| 51 |
+
"""Performs a web search using Tavily API to fetch up-to-date real-time information.
|
| 52 |
|
| 53 |
Args:
|
| 54 |
query: The search term or question to look up on the web.
|