A versatile app that converts images into short stories and lifelike audio locally. It combines Hugging Face's image captioning, Groq's story generation, and Parler TTS for local text-to-speech synthesis. Ideal for AI-driven projects with fast, reliable on-device TTS.
Python
0
16 commits
updated Sep 29, 2024
Generate short stories from images and transform them into lifelike audio using Parler TTS, Groq AI, and Hugging Face models, all within an interactive Streamlit app.
Salesforce/blip-image-captioning-base model.llama3-8b-8192 model from Groq.parler-tts/parler-tts-large-v1 model, leveraging your GPU/CPU for fast processing.Clone the repository:
git clone https://github.com/rk-vashista/TTS-Story_Generator
cd TTS-Story_Generator
Install dependencies:
pip install -r requirements.txt
Set up environment variables:
.env file:
touch .env
.env:
HUGGING_FACE=<your_hugging_face_api_key>
GROQ_API=<your_groq_api_key>
Run the app:
streamlit run app.py
Upload an image:
Upload a .jpg, .png, or .jpeg image to generate a scenario description.
Generate a short story: The app will automatically interpret the uploaded image and generate a short story using Groq's LLaMA model.
Convert the story into audio:
The app will convert the story into a .wav audio file using Parler TTS, which you can listen to and download.
The final audio will be saved as parler_tts_out.wav, available for download directly through the app.
Create a .env file in the project root to store your API keys:
HUGGING_FACE=<your_hugging_face_api_key>
GROQ_API=<your_groq_api_key>
Salesforce/blip-image-captioning-base model.llama3-8b-8192.parler-tts-large-v1 model, running on local resources..env file contains correct API keys for Hugging Face and Groq.This project is licensed under the MIT License - see the LICENSE file for details.
A versatile app that converts images into short stories and lifelike audio locally. It combines Hugging Face's image captioning, Groq's story generation, and Parler TTS for local text-to-speech synthesis. Ideal for AI-driven projects with fast, reliable on-device TTS.
Python
0
16 commits
updated Sep 29, 2024
Generate short stories from images and transform them into lifelike audio using Parler TTS, Groq AI, and Hugging Face models, all within an interactive Streamlit app.
Salesforce/blip-image-captioning-base model.llama3-8b-8192 model from Groq.parler-tts/parler-tts-large-v1 model, leveraging your GPU/CPU for fast processing.Clone the repository:
git clone https://github.com/rk-vashista/TTS-Story_Generator
cd TTS-Story_Generator
Install dependencies:
pip install -r requirements.txt
Set up environment variables:
.env file:
touch .env
.env:
HUGGING_FACE=<your_hugging_face_api_key>
GROQ_API=<your_groq_api_key>
Run the app:
streamlit run app.py
Upload an image:
Upload a .jpg, .png, or .jpeg image to generate a scenario description.
Generate a short story: The app will automatically interpret the uploaded image and generate a short story using Groq's LLaMA model.
Convert the story into audio:
The app will convert the story into a .wav audio file using Parler TTS, which you can listen to and download.
The final audio will be saved as parler_tts_out.wav, available for download directly through the app.
Create a .env file in the project root to store your API keys:
HUGGING_FACE=<your_hugging_face_api_key>
GROQ_API=<your_groq_api_key>
Salesforce/blip-image-captioning-base model.llama3-8b-8192.parler-tts-large-v1 model, running on local resources..env file contains correct API keys for Hugging Face and Groq.This project is licensed under the MIT License - see the LICENSE file for details.