Update app.py
Browse filesTest to change imports
app.py
CHANGED
|
@@ -1,9 +1,21 @@
|
|
| 1 |
-
import
|
| 2 |
-
from huggingface_hub import InferenceClient
|
| 3 |
from smolagents import CodeAgent, HfApiModel, load_tool, tool
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
from tools.final_answer import FinalAnswerTool
|
|
|
|
| 5 |
from Gradio_UI import GradioUI
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
@tool
|
| 8 |
def search_wikipedia_pages(search_string: str) -> str:
|
| 9 |
"""This tool helps to search for wikipedia pages related to a search string.
|
|
|
|
| 1 |
+
# from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
|
|
|
|
| 2 |
from smolagents import CodeAgent, HfApiModel, load_tool, tool
|
| 3 |
+
# import datetime
|
| 4 |
+
# import requests
|
| 5 |
+
# import pytz
|
| 6 |
+
# import yaml
|
| 7 |
from tools.final_answer import FinalAnswerTool
|
| 8 |
+
|
| 9 |
from Gradio_UI import GradioUI
|
| 10 |
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
# import gradio as gr
|
| 14 |
+
# from huggingface_hub import InferenceClient
|
| 15 |
+
# from smolagents import CodeAgent, HfApiModel, load_tool, tool
|
| 16 |
+
# from tools.final_answer import FinalAnswerTool
|
| 17 |
+
# from Gradio_UI import GradioUI
|
| 18 |
+
|
| 19 |
@tool
|
| 20 |
def search_wikipedia_pages(search_string: str) -> str:
|
| 21 |
"""This tool helps to search for wikipedia pages related to a search string.
|