I am using the google-genai module in my flask python code. I would like to upload 2 files to genai and I want it to generate a response based on the files, text content that I set and variable text content. I have tried many different methods including the client.files.upload method. When using the client.files.upload method in regular python code without flask, the AI seems to generate a response based on one file.
However, when I use the same code in my flask project, there are many errors. When I use the genai module with the variables but without the files, the code works. Are there any ways to upload pdf files to the google.genai module (not the google.generativeai module).
Can you please help me with suggestions on how to resolve this?