-
Notifications
You must be signed in to change notification settings - Fork 2k
Fix Loading GAIA dataset #1266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Loading GAIA dataset #1266
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job @aymeric-roucher ! Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
@@ -38,12 +38,13 @@ def get_single_file_description(file_path: str, question: str, visual_inspection | |||
) | |||
return file_description | |||
elif file_extension in ["pdf", "xls", "xlsx", "docx", "doc", "xml"]: | |||
file_description = f" - Attached document: {file_path}" | |||
image_path = file_path.split(".")[0] + ".png" | |||
if os.path.exists(image_path): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@A-Mahla could you check that this substituttion mechanism works?
e4bd157
to
907efda
Compare
Continues #499