π€Ask questions to your Aifa in natural languageπ€
πͺ Built with LangChain
In order to set your environment up to run the code here, first install all requirements:
pip install -r requirements.txt
Then set your OpenAI API key (if you don't have one, get one here)
export OPENAI_API_KEY=....
- Code to deploy on StreamLit
- Aifa starts chatting!
- Aifa grows a personality!
- Aifa remembers you!
In order to ask a question, run a command like:
python qa.py "What are some home remedies for cough"
You can switch out What are some home remedies for cough
for any question of your liking!
This exposes a chat interface for interacting with aifa.
IMO, this is a more natural and convenient interface for getting information.
The code to run the StreamLit app is in front.py
.
Note that when setting up your StreamLit app you should make sure to add OPENAI_API_KEY
as a secret environment variable.
streamlit run front.py