This repo hosts code that generates Sanskrit Shloks with AI and uses Text to Speech for the Shloks.This app is hosted here.
- Acquire an OpenAI Key by following instructions from here.
- Acquire an API Key from Narkeet.
- Create a Supabase account from here, create a bucket called "shlok" and generate the Supabase Url and Key. Ensure that the policy for the "shlok" bucket is set to allow reads, writes, deletes and updates.
- Ensure you have python 3.8+.
- Clone the repo:
git clone https://github.com/MokoSan/ShlokGPT.git
. - Install pipenv and run:
pipenv shell
. - Ensure you have streamlit in your path.
- Copy the .env.example file into a .env file and enter your OpenAI API Key, Narkeet API Key, Supabase Url, Supabase Key.
- To run:
streamlit run shlok.py
.
Contributions are welcomed and encouraged! If you run into any problems, create issues on this repository.
This project is licensed under the MIT License.