Alopezcordero commited on
Commit
f1d423c
·
verified ·
1 Parent(s): 8a5d41a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -16,7 +16,13 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
16
  # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
17
  @tool
18
  def read_files(file_path: str) -> str:
19
- """Read the the local attachment file and return its content or text"""
 
 
 
 
 
 
20
  path = Path(file_path)
21
  if not path.exists():
22
  return f"File {file_path} does not exist."
 
16
  # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
17
  @tool
18
  def read_files(file_path: str) -> str:
19
+ """Read the the local attachment file and return its content or text
20
+ Args:
21
+ file_path: Path to the local file attachment to read.
22
+
23
+ Returns:
24
+ The file content as text, or an error message.
25
+ """
26
  path = Path(file_path)
27
  if not path.exists():
28
  return f"File {file_path} does not exist."