Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,7 @@ import datetime
|
|
| 3 |
import requests
|
| 4 |
import pytz
|
| 5 |
import yaml
|
|
|
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
|
| 8 |
from Gradio_UI import GradioUI
|
|
@@ -20,7 +21,6 @@ def web_search_tool(query: str, num_results: int = 3) -> str:
|
|
| 20 |
A string containing summarized up-to-date information from the web.
|
| 21 |
"""
|
| 22 |
try:
|
| 23 |
-
from openai import web # ✅ Built-in OpenAI web capability (like web.search)
|
| 24 |
|
| 25 |
# Perform the web search
|
| 26 |
results = web.search(f"{query}")
|
|
|
|
| 3 |
import requests
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
+
from openai import web
|
| 7 |
from tools.final_answer import FinalAnswerTool
|
| 8 |
|
| 9 |
from Gradio_UI import GradioUI
|
|
|
|
| 21 |
A string containing summarized up-to-date information from the web.
|
| 22 |
"""
|
| 23 |
try:
|
|
|
|
| 24 |
|
| 25 |
# Perform the web search
|
| 26 |
results = web.search(f"{query}")
|