From c27337bd6c7d08768bb66ce93c7e30be23b28a6f Mon Sep 17 00:00:00 2001 From: Mark Hoekveen Date: Sat, 27 Jul 2024 17:17:46 +0200 Subject: [PATCH] init banter on empty string --- playlist/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/playlist/tasks.py b/playlist/tasks.py index 33a9a19..5063a70 100644 --- a/playlist/tasks.py +++ b/playlist/tasks.py @@ -23,6 +23,7 @@ def get_banter(id): but might be possible to use OpenAI API in future. """ track = Track.objects.get(pk=id) + track.banter = "" try: get(os.getenv('AI_ENDPOINT'))