llama-index-flask-demo
llama-index-flask-demo copied to clipboard
A Flask Server Demo Application showing off some llama-index LLM prompt magic, including file upload and parsing :)
llama-index flask demo
Screenshots



Notes
Implementing https://github.com/jerryjliu/gpt_index and their connectors (in this example twitter from llama-hub twitter_loader in a flask application for prototyping and demo. Needs more work for additional prompt saving. Credits to jdan for the CSS.
Requires OpenAI API Key & Twitter Developer Key (Bearer Token)
install
git clone https://github.com/mewmix/llama-index-flask-demo && cd llama-index-flask-demo
pip install -r requirements.txt
edit the server.py file with your keys and then run.
python3 server.py
Go to browser
http://127.0.0.1:5000/
example prompt
What would be a trendy summary tweet based on this user?