Internal error with large csv file using AI studio interface both 1.5pro and flash

Hi,

I have 2 CSV files; one contains around 1800 rows, and another contains 100 rows, totalling around 41k tokens. When I ask a question using the AI studio interface, it will show “An internal error has occurred.” until I reduce the size of the first CSV file to totalling around 8k tokens.

But I can upload these two CSV and ask the same question by using code
response = gemini_model.generate_content([question, file1, file2])

Is this a limitation of this AI studio interface?

Hi @BarryC7,

Welcome to the Google AI Forum! :confetti_ball: :confetti_ball:

The issue you’re experiencing is likely due to the AI Studio interface’s limitations in handling large CSV files. I recommend using Gemini API as it can process larger inputs programmatically.