Update crew.py
Browse files
crew.py
CHANGED
|
@@ -357,10 +357,9 @@ def run_crew(question, file_path):
|
|
| 357 |
# Process
|
| 358 |
|
| 359 |
if file_path:
|
| 360 |
-
|
| 361 |
|
| 362 |
-
if
|
| 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}."
|
|
|
|
| 357 |
# Process
|
| 358 |
|
| 359 |
if file_path:
|
| 360 |
+
df = read_file(file_path)
|
| 361 |
|
| 362 |
+
if df:
|
|
|
|
| 363 |
question = f"{question} File {file_path} data: {df.to_string()}"
|
| 364 |
else:
|
| 365 |
question = f"{question} File path: {file_path}."
|