Commit
bc57d1c
·
verified ·
1 Parent(s): f2d7045

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -8,6 +8,8 @@ from dotenv import load_dotenv
8
  load_dotenv()
9
 
10
  # Setup client
 
 
11
  client = ai.Client()
12
 
13
  def generate_draft(topic: str, model: str = "openai:gpt-4o") -> str:
 
8
  load_dotenv()
9
 
10
  # Setup client
11
+ os.environ["OPENAI_API_KEY"] = os.getenv("OPENAI_API_KEY")
12
+
13
  client = ai.Client()
14
 
15
  def generate_draft(topic: str, model: str = "openai:gpt-4o") -> str: