A simple GUI application to log your project workload using the Gemini API for console-style logging.
- Install Requirements:
pip install google-generativeai tkinter python-dotenv
-
Get your Gemini API key: Go to Google AI Studio and get your Gemini API key.
-
Create
.env
file: In the same directory as thegemini_logger.py
file, create a.env
file and add your Gemini API key:GOOGLE_API_KEY="YOUR_ACTUAL_GEMINI_API_KEY_HERE"
Remember to replace
YOUR_ACTUAL_GEMINI_API_KEY_HERE
with your actual key.
- Run the application:
python gemini_logger.py
- Enter your workload update in the text box.
- Click on "Save as File" to save a new file or click "Change File" to load an existing log file
- Click "Update Log" to append the timestamped, Gemini-formatted log to the current file.
- Uses Gemini API to translate input text to console-like status logs.
- Saves logs to a specified text file.
- Basic GUI with text input and a display for log entries.
- Timestamped log entries.
- Supports saving to new or loading existing log files.
- Do not commit the
.env
file containing your API key to version control. The included.gitignore
takes care of this.
- Adjusted Gemini API interaction for improved stability.
- Removed structured response constraint to resolve API errors.
- This change simplifies data retrieval from the model.
- The system now expects and processes standard text output.
- This modification enhances application reliability.