Spaces:
Configuration error
Configuration error
Update crew.py
Browse files
crew.py
CHANGED
|
@@ -360,7 +360,7 @@ def run_crew(question, file_path):
|
|
| 360 |
df = read_file(file_path)
|
| 361 |
|
| 362 |
if df:
|
| 363 |
-
question = f"{question} File
|
| 364 |
else:
|
| 365 |
question = f"{question} File path: {file_path}."
|
| 366 |
|
|
|
|
| 360 |
df = read_file(file_path)
|
| 361 |
|
| 362 |
if df:
|
| 363 |
+
question = f"{question} File data: {df.to_string()}" # load data due to sandbox contraints
|
| 364 |
else:
|
| 365 |
question = f"{question} File path: {file_path}."
|
| 366 |
|