huytofu92 commited on
Commit
8a0cdd8
·
1 Parent(s): 8d5a7ee

change tool class

Browse files
Files changed (3) hide show
  1. audio_tools.py +2 -1
  2. tools.py +2 -1
  3. vlm_tools.py +2 -1
audio_tools.py CHANGED
@@ -1,5 +1,6 @@
1
  import base64
2
- from langchain_core.tools import tool
 
3
  from pydub import AudioSegment
4
  from pyAudioAnalysis import audioSegmentation as aS
5
  from io import BytesIO
 
1
  import base64
2
+ from langchain_core.tools import tool as langchain_tool
3
+ from smolagents.tools import Tool, tool
4
  from pydub import AudioSegment
5
  from pyAudioAnalysis import audioSegmentation as aS
6
  from io import BytesIO
tools.py CHANGED
@@ -1,4 +1,5 @@
1
- from langchain_core.tools import tool
 
2
  from datetime import datetime
3
  from typing import Literal, List, Union
4
  from smolagents import WebSearchTool, DuckDuckGoSearchTool, VisitWebpageTool, WikipediaSearchTool
 
1
+ from langchain_core.tools import tool as langchain_tool
2
+ from smolagents.tools import Tool, tool
3
  from datetime import datetime
4
  from typing import Literal, List, Union
5
  from smolagents import WebSearchTool, DuckDuckGoSearchTool, VisitWebpageTool, WikipediaSearchTool
vlm_tools.py CHANGED
@@ -6,7 +6,8 @@ import base64
6
  import onnxruntime
7
  from io import BytesIO
8
  from PIL import Image
9
- from langchain_core.tools import tool
 
10
 
11
  def pre_processing(image: str, input_size=(416, 416))->np.ndarray:
12
 
 
6
  import onnxruntime
7
  from io import BytesIO
8
  from PIL import Image
9
+ from langchain_core.tools import tool as langchain_tool
10
+ from smolagents.tools import Tool, tool
11
 
12
  def pre_processing(image: str, input_size=(416, 416))->np.ndarray:
13