bstraehle commited on
Commit
5612bdb
·
verified ·
1 Parent(s): 69e35b7

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +3 -3
crew.py CHANGED
@@ -202,13 +202,13 @@ def run_crew(question, file_path):
202
  file_data = read_docx(file_path)
203
  contents = [f"{question}\n{file_data}"]
204
  print("###")
205
- print(contents[0])
206
  print("###")
207
- if is_ext(file_path, ".pptx"):
208
  file_data = read_pptx(file_path)
209
  contents = [f"{question}\n{file_data}"]
210
  print("###")
211
- print(contents[0])
212
  print("###")
213
  else:
214
  file = client.files.upload(file=file_path)
 
202
  file_data = read_docx(file_path)
203
  contents = [f"{question}\n{file_data}"]
204
  print("###")
205
+ print(file_data)
206
  print("###")
207
+ elif is_ext(file_path, ".pptx"):
208
  file_data = read_pptx(file_path)
209
  contents = [f"{question}\n{file_data}"]
210
  print("###")
211
+ print(file_data)
212
  print("###")
213
  else:
214
  file = client.files.upload(file=file_path)