Hiermit lassen sich Audiogeschichten für Kinder erstellen. Die Kinder können sich aus vorgegeben Keywörtern ihre Geschichten in verschiedenen Genre erstellen lassen.
Letzendlich wird ein Prompt zusammengesetzt, der über die OpenAI API an ChatGPT gesendet wird. Dort wird die Geschichte erzeugt und mit dieser wird via TTS (aktuell OpenAI TTS) ein mp3 File erzeugt.
Das ganze ist als Flask-APP aufgesetzt und kann auch in einem Dockercontainer laufen.
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
You need to have an OpenAI API Key
Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services.
- Get a free API Key at https://openai.com
- Clone the repo
git clone https://github.com/flomet/ToniGPT.git
- Create an empty
.env
file and enter your OpenAI API KeyOPENAI_API_KEY=your_key
- For a local installation also enter the path where the stories should be stored in the
.env
STORIES_DIR=./stories
- Install the dependencies from the requirements.txt
pip install requirements.txt
- Run the app
python tonigpt_app.py
or
flask --app my_flask_app run --debug
Follow step 1 to 3 from aboves instruction.
-
Build the container
docker build -t tonigpt .
-
Run the container and mount your story-folder to /app/stories
docker run -p 5000:5000 -v /path_to/ToniGPT_Stories:/app/stories -d tonigpt
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
For more examples, please refer to the Documentation