bgpt / README.md
bibekyess's picture
Update README.md
39a2327

A newer version of the Streamlit SDK is available: 1.39.0

Upgrade
metadata
title: Bgpt
emoji: πŸ“‰
colorFrom: yellow
colorTo: green
sdk: streamlit
sdk_version: 1.19.0
app_file: app.py
pinned: false

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

Hosted Link:

https://bibekbot.streamlit.app/

courses? --response later on

Setup:

Clone the repo

git clone git@github.com:bibekyess/Personal-Chatbot.git
cd Personal-Chatbot

Create an environment using pipenv

Install pipenv if not installed. [Pipenv is required to install streamlit in macOS]

pip3 install pipenv

Creates a new Pipenv environment using python-3.9 and activates it

pipenv --python 3.9
pipenv shell

Installs streamlit in the recently created environment

 pipenv install streamlit==1.11.1

Installs the dependencies mentioned in requirements.txt file

pip install -r requirements.txt

Runs the b_bot app

streamlit run b_bot.py

For training:

python train.py

This saves the checkpoint in 'data.pth' file. Then run the b_bot app

streamlit run b_bot.py

Reference: I referred to https://github.com/patrickloeber/pytorch-chatbot for simple implementation of contextual chatbot with interactions from terminals. I referred to https://github.com/AI-Yash/st-chat for the beautiful chatbot interface.