Spaces:
Paused
Paused
Update crew.py
Browse files
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(
|
| 206 |
print("###")
|
| 207 |
-
|
| 208 |
file_data = read_pptx(file_path)
|
| 209 |
contents = [f"{question}\n{file_data}"]
|
| 210 |
print("###")
|
| 211 |
-
print(
|
| 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)
|