OCR’d half of a cooking book with help from Gemini and put everything in a beautiful recipes.csv
Used the csv.DictReader object to access the info and organize it into a list, very useful.
Updated main.py so that when the user’s prompt starts with “Cooking”, it takes a random recipe from the csv file (using the random.randint(a, b) function) and returns a formatted sentence with all the info for cooking that recipe.
Made this cos I’m really bad at cooking and it could also benefit others, you never know.
Comments 2
Why not …. Lets add more (ᵕ • ᴗ •)
Yes I plan to OCR the rest of the book tomorrow, and find other recipes on the internet. also I will translate everything to english ofc
Sign in to join the conversation.