Duke University IDS 721 Mini Project 9
- Create a website using Streamlit
- Connect to an open source LLM (Hugging Face)
- Deploy model via Streamlit or other service (accessible via browser)
- Python 3.9 (3.8 is also fine)
- Hugging Face Transformers
- Streamlit
- OpenAI API
- Langchain API
Three models are used in this project: Two Hugging Face Models and OpenAI API.
The first Hugging Face model is used to generate a description of the image, then the OpenAI model is used to generate a story from the image, finally the second Hugging Face model is used to generate an audio story from the story.
- Upload an image by Hugging Face model
- Get a description of the image by OpenAI model
- Generate a story from the image by Hugging Face model
- Clone this Repo
- Run
streamlit run app.py
- Visit the app at
http://localhost:8501/
- Make sure you have the
openai
API key in your.env
file - Make sure you have the
huggingface
API key in your.env
file - Make sure you have port 8501 available
- Upload an image and get the audio story