Skip to content

Benfoxyy/AI-ChatApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Chat Bot With Streamlit 🤖

This project is a AI chatbot application built using Streamlit and OpenAI's GPT model. The chatbot allows users to interact with an AI assistant in real-time.

python Streamlit logo OpenAI

AI-CHAT-BOT

Planning For Future

This bot is not compleated yet, And i've got multiple ideas to add it in future like :

  • AI history
  • Multiple AI models ( user can select through it )
  • Plans system like FREE, STANDARD, PRO, UNLIMITED

Setup

Deployment

If you wanna just see and work with the resualt, I've deployed my project with Streamlit Cloud and you can access to it with this url : https://benbot.streamlit.app

But if you need to use it in you project or deal with their structures, you can follow these easy steps :

Clone Project

For cloning this project in you computer you can just enter this git command in your terminal and open it :

git clone /~https://github.com/Benfoxyy/AI-ChatApp.git
cd <PROJECT_DIRECTORY>

Virtual Environment

Now lets create a virtual environment ( venv ) for manage and our installing pakages :

python -m venv venv

Active your venv for working with it :

# Windows
venv\Scripts\activate

# macOS and Linux
source venv/bin/activate

Requirements

I put every single pakages you need to install in requeirements.txt file, So you can just run this command in your venv :

pip install -r requirements.txt

API Key

Set up OpenAI API Key: You will need to set up your OpenAI API key. You can get this key from OpenAI's platform .

Once you have your key, create a .streamlit/secrets.toml file in your project directory with the following content:

[openai]
api_key = "<YOUR_OPENAI_API_KEY>"

Run It!

As i said ; I've used streamlit for this project, in spite of this we're gonna run it on streamlit client :

streamlit run AI.py

By running this command you will see the resault in you browser 🎉

License

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


Thanks for visiting

I hope that you enjoy it, Let me know if you have any suggestion 😉

About

This is an AI chat bot designed and deployed by streamlit

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages