Update crew.py
Browse files
crew.py
CHANGED
|
@@ -417,11 +417,7 @@ def run_crew(question, file_path):
|
|
| 417 |
# Process
|
| 418 |
|
| 419 |
if file_path:
|
| 420 |
-
if is_ext(file_path, ".csv")
|
| 421 |
-
or is_ext(file_path, ".xls")
|
| 422 |
-
or is_ext(file_path, ".xlsx")
|
| 423 |
-
or is_ext(file_path, ".json")
|
| 424 |
-
or is_ext(file_path, ".jsonl"):
|
| 425 |
file_data = read_file_json(file_path)
|
| 426 |
question = f"{question} File data: {file_data}."
|
| 427 |
else:
|
|
|
|
| 417 |
# Process
|
| 418 |
|
| 419 |
if file_path:
|
| 420 |
+
if is_ext(file_path, ".csv") or is_ext(file_path, ".xls") or is_ext(file_path, ".xlsx") or is_ext(file_path, ".json") or is_ext(file_path, ".jsonl"):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 421 |
file_data = read_file_json(file_path)
|
| 422 |
question = f"{question} File data: {file_data}."
|
| 423 |
else:
|