A chatbot interface using Google Generative AI with a Tkinter interface for API key input
Project description
Google Generative AI Chatbot
This project is a simple chatbot interface using Google Generative AI. It includes a Tkinter interface to help the user set up and save their API key for use with the Google Generative AI API.
Features
- API Key Setup: A Tkinter-based GUI to help users securely save their Google Generative AI API key.
- Chatbot Interaction: Interact with Google’s Generative AI models using simple prompts.
- Error Handling: Basic error handling to guide the user in case of any issues.
Prerequisites
- Python 3.6 or higher.
- Google Generative AI API key.
- Required libraries:
pickle,google-generativeai,tkinter.
Installation
-
Install the dependencies:
pip install -r requirements.txt
-
Run the chatbot:
python google_chatbot.py
Usage
Setting up the API Key
The first time you run the chatbot, a Tkinter window will prompt you to enter your API key. If you don’t have an API key, follow the instructions in the application to obtain one from Google.
Starting a Chat
Once the API key is set, you can interact with the chatbot directly from the command line. Type in your prompt, and the chatbot will respond.
Type exit to end the chat.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Contributing
Feel free to submit pull requests or open issues if you encounter bugs or have suggestions for improvement.
Repository
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file swastha-0.1.0.tar.gz.
File metadata
- Download URL: swastha-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3fb2ffaae6d735ecc677c273ec66a2435c352f324c4a8f46c6335fc82065a34
|
|
| MD5 |
4f83b61bc0d1c2f3f257b174a783c976
|
|
| BLAKE2b-256 |
61fb86f17bd320625eca38ec4ecedac34c66766ba45bd43e6f459283ae4f4865
|
File details
Details for the file swastha-0.1.0-py3-none-any.whl.
File metadata
- Download URL: swastha-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af5b70129cd74eab20fc326ead5152b67e130cadc187fbb69f0a67f4ef0282fe
|
|
| MD5 |
96005f5ea8eb080cf081a170fa0e90f4
|
|
| BLAKE2b-256 |
c7c100dd9877943b89b8c9dd7a942ac0af5932854bd70bc69c86c20a4c3a6c46
|