Relative Content

Tag Archive for pythonapiautomationgoogle-gemini

How can I automatically run code while making alterations to my code?

I have the following code which uses the google gemini api to process a file called “pdf_texts_79_batch_#.txt.” The “#” in the file name stands for a number that starts at one and works its way up. I need to make it so that I can run the code, then I can change the number in the file name to the onqecutive number, then run the code again, all autonomously. For example, my code would look like this: