Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ class LoadCsvTool(Tool):
|
|
| 36 |
}
|
| 37 |
output_type = "string"
|
| 38 |
|
| 39 |
-
def
|
| 40 |
with open(file_path, "r", encoding="utf-8") as f:
|
| 41 |
return f.read()
|
| 42 |
# The original path caused a SyntaxError due to backslashes being interpreted as escape sequences.
|
|
|
|
| 36 |
}
|
| 37 |
output_type = "string"
|
| 38 |
|
| 39 |
+
def forward(self, file_path: str) -> str:
|
| 40 |
with open(file_path, "r", encoding="utf-8") as f:
|
| 41 |
return f.read()
|
| 42 |
# The original path caused a SyntaxError due to backslashes being interpreted as escape sequences.
|