Annotate data effortlessly using a Large Language Model (Gemeni API). This code processes CSV input, annotates tweets by giving prompt to Gemini, and stores the results back in CSV, ensuring data integrity and accessibility.
- Gemini API.
- Python.
- Visual Studio Code.
- Get your Gemini API-KEY from Gemini AI Developer site.
- Use this API-KEY in the code.
- Install all the libraries using the following command:
pip install google.generativeai csv
- You should have installed Python version which supports googl.generativeai, version > 3.10 is fine.
- Run the code.