Spaces:
Paused
Paused
Update crew.py
Browse files
crew.py
CHANGED
|
@@ -361,7 +361,7 @@ def run_crew(question, file_path):
|
|
| 361 |
|
| 362 |
if ext in (".csv", ".xls", ".xlsx", ".json", ".jsonl"):
|
| 363 |
df = read_file(file_path)
|
| 364 |
-
question = f"{question} File {file_path}
|
| 365 |
else:
|
| 366 |
question = f"{question} File path: {file_path}."
|
| 367 |
|
|
|
|
| 361 |
|
| 362 |
if ext in (".csv", ".xls", ".xlsx", ".json", ".jsonl"):
|
| 363 |
df = read_file(file_path)
|
| 364 |
+
question = f"{question} File {file_path} data: {df.to_string()}"
|
| 365 |
else:
|
| 366 |
question = f"{question} File path: {file_path}."
|
| 367 |
|