OpenAI and Streamlit Chatbot
This repository contains the code for a chatbot powered by OpenAI's GPT model, interfaced through Streamlit. The chatbot is designed to provide users with an interactive and engaging experience, leveraging the advanced natural language understanding capabilities of OpenAI's models. Users can ask questions, get assistance, or even have a casual conversation with the bot. This project aims to explore the realms of AI-driven chat interfaces and demonstrates the integration of OpenAI with Streamlit for an efficient and user-friendly application.
** Please remember to add a folder as ".streamlit" in the project directory and include your OpenAI API code in it, Save the file in the ".streamlit" folder as "secrets.toml"***
<--------------------------------------------------------------------------------------------------------------->
-
For installing the virtual environment you can either use the Makefile and run
make setupor install it manually with the following commands:make setup
After that active your environment by following commands:
source .venv/bin/activate
Or ....
-
Install the virtual environment and the required packages by following commands:
pyenv local 3.11.3 python -m venv .venv source .venv/bin/activate pip install --upgrade pip pip install -r requirements.txt
-
Install the virtual environment and the required packages by following commands.
For
PowerShellCLI :pyenv local 3.11.3 python -m venv .venv .venv\Scripts\Activate.ps1 pip install --upgrade pip pip install -r requirements.txt
For
Git-bashCLI :pyenv local 3.11.3 python -m venv .venv source .venv/Scripts/activate pip install --upgrade pip pip install -r requirements.txtNote:If you encounter an error when trying to runpip install --upgrade pip, try using the following command:python.exe -m pip install --upgrade pip