Giter Site home page Giter Site logo

relangitarunkumar333 / rtk-s-botfriend Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 898 KB

ChatBot Application using Tkinter and Groq API. This repository features a simple chat app built with Python's Tkinter, integrating the Groq API for AI-powered interactions. Highlights: GUI with chat display and input field, Groq API for responses, customizable design, and user-friendly with common exit commands (bye, exit, end).

License: MIT License

Python 100.00%
ai app-development chatbot groq-api gui hci python text-generation tkinter ui-design

rtk-s-botfriend's Introduction

ChatBot Application using Tkinter and Groq API

This repository contains a simple graphical chat application built with Python's Tkinter library. The application connects to a chatbot service using the Groq API, allowing users to interact with an AI-powered bot.

Features

  • Graphical User Interface: Designed with Tkinter, featuring a chat display, user input field, and send button.
  • Groq API Integration: Communicates with the Groq chatbot service to generate responses.
  • Customizable Design: Includes different styles and layouts for the chat window.
  • User-Friendly: Easy to use, with support for common exit commands (bye, exit, end).

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/your-repo-name.git
    cd your-repo-name
  2. Create a virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
  3. Install the required packages:

    pip install -r requirements.txt
  4. Set up the Groq API key:

    • Obtain your API key from Groq.
    • Set the environment variable GROQ_API_KEY with your key:
      export GROQ_API_KEY="your_groq_api_key"  # On Windows, use `set` instead of `export`

Usage

  1. Run the application:

    python app.py
  2. Interact with the chatbot:

    • Type your message in the input field and press Enter or click the "Send" button.
    • The bot will respond, and the conversation will be displayed in the chat window.
    • To end the conversation, type "bye", "exit", or "end".

File Structure

  • app.py: The main script containing the Tkinter application and Groq API integration.
  • requirements.txt: List of Python packages required for the application.
  • .gitignore: Git ignore file for excluding unnecessary files from version control.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

  • Tkinter - Python's standard GUI library.
  • Groq - AI chatbot service used for generating responses.

Feel free to customize the design and functionality as per your needs. Contributions are welcome!

rtk-s-botfriend's People

Contributors

relangitarunkumar333 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.