bstraehle commited on
Commit
69e35b7
·
verified ·
1 Parent(s): 369cd81

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +6 -4
crew.py CHANGED
@@ -201,16 +201,18 @@ def run_crew(question, file_path):
201
  if is_ext(file_path, ".docx"):
202
  file_data = read_docx(file_path)
203
  contents = [f"{question}\n{file_data}"]
 
 
 
204
  if is_ext(file_path, ".pptx"):
205
  file_data = read_pptx(file_path)
206
  contents = [f"{question}\n{file_data}"]
 
 
 
207
  else:
208
  file = client.files.upload(file=file_path)
209
  contents = [file, question]
210
-
211
- print("###")
212
- print(contents[0])
213
- print("###")
214
 
215
  response = client.models.generate_content(
216
  model=DOCUMENT_ANALYSIS_MODEL,
 
201
  if is_ext(file_path, ".docx"):
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)
215
  contents = [file, question]
 
 
 
 
216
 
217
  response = client.models.generate_content(
218
  model=DOCUMENT_ANALYSIS_MODEL,