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

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +5 -5
crew.py CHANGED
@@ -417,11 +417,11 @@ def run_crew(question, file_path):
417
  # Process
418
 
419
  if file_path:
420
- if is_ext(file_path, ".csv") or
421
- is_ext(file_path, ".xls") or
422
- is_ext(file_path, ".xlsx") or
423
- is_ext(file_path, ".json") or
424
- 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")
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: