Lioness256/Sunbird_AI_GenAI_application
0
๐ป Sunbird AI Pipeline
A Streamlit web app that takes text or an audio recording, transcribes it, summarises it, translates the summary into an East African language, and reads it back โ all powered by Sunbird AI.
Pipeline
Input (text or audio)
โโโบ [STT] /tasks/stt โ transcript
โโโบ [LLM] /tasks/sunflower_simple โ summary
โโโบ [LLM] /tasks/sunflower_simple โ translation
โโโบ [TTS] /tasks/tts โ audioLocal setup
git clone https://github.com/Bahati-bk/internship-assessment.git
cd internship-assessment
python -m venv venv
# Windows:
venv\Scripts\activate
# Mac/Linux:
source venv/bin/activate
pip install -r requirements.txtCopy .env.example to .env and fill in your token:
cp .env.example .env
# edit .env and set SUNBIRD_API_TOKEN=<your token>Run the app:
streamlit run app.pyEnvironment variables
Usage
- Choose Text or Audio file as input
- Pick a target language (Luganda, Runyankole, Ateso, Lugbara, or Acholi)
- Click โถ Run Pipeline
- Results appear as each step completes โ transcript, summary, translation, and a playable audio clip
Known limitations
- Audio files are capped at 5 minutes
- Supported output languages: Luganda, Runyankole, Ateso, Lugbara, Acholi
- TTS quality depends on the Sunbird AI speaker models for each language
