Create a web-based conversational bot powered by GPT. Based on Abhishek Thakur's video. Windows users may need MSVC Build Tools.
Create a Python environment including scrapy
, langchain
, gradio
, openai
, chromadb
, html2text
, tiktoken
. Pip-install other possible missing dependencies.
- Run terminal. At
hfcrawl
dir level, typescrapy crawl huggingface
. Go back one level towebchatgpt
and typepython index.py
.
WARNING: you need an API key from OpenAI site (see https://platform.openai.com/account/api-keys). Once the key is generated:
[Linux] copy it and type export OPENAI_API_KEY="
INSERT_KEY_HERE"
or
[Windows] add a new environment variable named OPENAI_API_KEY and set the generated key as the value.
- After setting the key, type
python bot.py
, go to http://127.0.0.1:7860 and ask some question about diffusers.