Skip to content

Ahmed-M0hamed/reddit_chatbot_react_app_from_scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reddit chatbot

this chatbot app made from scratch with scraped data from reddit , pytorch model , fastapi backend server , react

chatbot

how the app was made

first we needed the data so we scraped 'askreddit' subreddit and created csv file with scrap.py script

python model/scrap.py 

train the model so we build seq2seq transformer with pytorch and created our data pipeline

run model/chatbot.ipynb notebook cells

create the app

backend : server we used fastapi we loaded the model and vocab_transform and we made the predict function

cd backend 
uvicorn inference:app --reload 

frontend : we created simple interface with react and we used axios to make our requests

cd frontend 
npm install 
npm start 

the bot can be improved by using bigger and more topic specific dataset

About

chatbot made from scratch with pytorch and react and fastapi with reddit scraped data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors