Skip to content

Commit

Permalink
Update tasks.py
Browse files Browse the repository at this point in the history
  • Loading branch information
catgirlinspace authored Nov 19, 2023
1 parent da3282f commit 9b1891b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion battles/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

from openai import OpenAI

client = OpenAI(api_key=settings.OPENAI_API_KEY)
from anymail.message import AnymailMessage
from celery import shared_task
from django.conf import settings
Expand All @@ -22,6 +21,8 @@
SALT = 'battle-export'


client = OpenAI(api_key=settings.OPENAI_API_KEY)


with open('battles/gpt_prompt.txt') as f:
GPT_PROMPT = f.read()
Expand Down

0 comments on commit 9b1891b

Please sign in to comment.