Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,8 @@ from PIL import Image
|
|
| 6 |
from io import BytesIO
|
| 7 |
import inspect
|
| 8 |
import pandas as pd
|
| 9 |
-
from tools import search_tool, google_search_tool, visit_web_tool,
|
|
|
|
| 10 |
|
| 11 |
# (Keep Constants as is)
|
| 12 |
# --- Constants ---
|
|
@@ -40,7 +41,7 @@ You will receive questions in the following format:
|
|
| 40 |
self.my_agent = CodeAgent(
|
| 41 |
tools=[search_tool, google_search_tool,
|
| 42 |
visit_web_tool, file_download_tool, speech_to_text_tool,
|
| 43 |
-
FinalAnswerTool()],
|
| 44 |
instructions=instruction,
|
| 45 |
model=model,
|
| 46 |
add_base_tools=True, # Add any additional base tools
|
|
|
|
| 6 |
from io import BytesIO
|
| 7 |
import inspect
|
| 8 |
import pandas as pd
|
| 9 |
+
from tools import (search_tool, google_search_tool, visit_web_tool,
|
| 10 |
+
file_download_tool, speech_to_text_tool, read_text_file_tool)
|
| 11 |
|
| 12 |
# (Keep Constants as is)
|
| 13 |
# --- Constants ---
|
|
|
|
| 41 |
self.my_agent = CodeAgent(
|
| 42 |
tools=[search_tool, google_search_tool,
|
| 43 |
visit_web_tool, file_download_tool, speech_to_text_tool,
|
| 44 |
+
read_text_file_tool, FinalAnswerTool()],
|
| 45 |
instructions=instruction,
|
| 46 |
model=model,
|
| 47 |
add_base_tools=True, # Add any additional base tools
|