Spaces:
Sleeping
Sleeping
Update app.py
Browse filesRe instantiate as known
app.py
CHANGED
|
@@ -56,7 +56,7 @@ import datetime
|
|
| 56 |
import requests
|
| 57 |
import pytz
|
| 58 |
import yaml
|
| 59 |
-
|
| 60 |
|
| 61 |
from Gradio_UI import GradioUI
|
| 62 |
|
|
@@ -87,8 +87,8 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 87 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 88 |
|
| 89 |
|
| 90 |
-
#
|
| 91 |
-
|
| 92 |
|
| 93 |
# Initialize the web search tool
|
| 94 |
search_tool = DuckDuckGoSearchTool()
|
|
|
|
| 56 |
import requests
|
| 57 |
import pytz
|
| 58 |
import yaml
|
| 59 |
+
from tools.final_answer import FinalAnswerTool
|
| 60 |
|
| 61 |
from Gradio_UI import GradioUI
|
| 62 |
|
|
|
|
| 87 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 88 |
|
| 89 |
|
| 90 |
+
# Initialize the final answer tool
|
| 91 |
+
final_answer = FinalAnswerTool()
|
| 92 |
|
| 93 |
# Initialize the web search tool
|
| 94 |
search_tool = DuckDuckGoSearchTool()
|