Francesco-A commited on
Commit
998967a
·
1 Parent(s): 5168ed6

fix(tools): import @tool in download_file.py and files_to_text.py

Browse files
Files changed (2) hide show
  1. tools/download_file.py +1 -0
  2. tools/files_to_text.py +2 -0
tools/download_file.py CHANGED
@@ -1,4 +1,5 @@
1
  from typing import Optional
 
2
 
3
  @tool
4
  def download_file_from_url(url: str, filename: Optional[str] = None) -> str:
 
1
  from typing import Optional
2
+ from smolagents import tool
3
 
4
  @tool
5
  def download_file_from_url(url: str, filename: Optional[str] = None) -> str:
tools/files_to_text.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  @tool
2
  def image_to_text(image_path: str) -> str:
3
  """
 
1
+ from smolagents import tool
2
+
3
  @tool
4
  def image_to_text(image_path: str) -> str:
5
  """