Skip to main content

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

  1. Python 3.6 or higher.
  2. Google Generative AI API key.
  3. Required libraries: pickle, google-generativeai, tkinter.

Installation

  1. Install the dependencies:

    pip install -r requirements.txt
    
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swastha-0.1.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swastha-0.1.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

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

Hashes for swastha-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d3fb2ffaae6d735ecc677c273ec66a2435c352f324c4a8f46c6335fc82065a34
MD5 4f83b61bc0d1c2f3f257b174a783c976
BLAKE2b-256 61fb86f17bd320625eca38ec4ecedac34c66766ba45bd43e6f459283ae4f4865

See more details on using hashes here.

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

Hashes for swastha-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af5b70129cd74eab20fc326ead5152b67e130cadc187fbb69f0a67f4ef0282fe
MD5 96005f5ea8eb080cf081a170fa0e90f4
BLAKE2b-256 c7c100dd9877943b89b8c9dd7a942ac0af5932854bd70bc69c86c20a4c3a6c46

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page