bstraehle commited on
Commit
b29af12
·
verified ·
1 Parent(s): 56e834d

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +1 -5
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: