GithubHelp home page GithubHelp logo

whitehatboy005 / ai Goto Github PK

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

This Python application creates a chatbot interface using Streamlit, allowing users to interact with an AI model powered by the google.generativeai library. The chatbot responds to various commands and queries, providing conversational responses based on the input.

Python 100.00%
ai ai-chatbot api chat-bot

ai's Introduction

AI Chatbot

This Python application creates a chatbot interface using Streamlit, allowing users to interact with an AI model powered by the google.generativeai library. The chatbot responds to various commands and queries, providing conversational responses based on the input.

Features

  • Chat Input: Users can enter messages or commands in the chat interface.
  • Bot Responses: Based on the input, the chatbot responds with predefined messages or generates content using the AI model.
  • Session Management: Maintains a history of conversations within the session using Streamlit's session state.
  • Personalization: Displays a personalized greeting and identifies itself as an AI assistant.
  • Dynamic Content Generation: Uses the AI model to generate text content for user queries beyond predefined responses.

Model Output

Screenshot 2024-07-11 173855

Installation

Clone the Repository

git clone https://github.com/whitehatboy005/Ai

Move the file

cd Ai

Install Dependencies

pip install -r requirements.txt

Config Your API Key

notepad config.env

Run the Program

streamlit run Ai.py

Instructions

A .env file in Python is a simple text file used to store configuration settings, environment variables, and other key-value pairs related to a Python project. These files typically contain sensitive information such as API keys, database credentials, or configuration settings.

To get GEMINI_API_KEY in this link https://aistudio.google.com/app/apikey

ai's People

Contributors

whitehatboy005 avatar

Stargazers

 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.