minko186 commited on
Commit
52c5f53
·
verified ·
1 Parent(s): 17d12d8

Update ai_generate.py

Browse files
Files changed (1) hide show
  1. ai_generate.py +1 -1
ai_generate.py CHANGED
@@ -4,7 +4,7 @@ import torch
4
  import openai
5
 
6
  model = "gpt-3.5-turbo"
7
- openai.api_key = "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"
8
 
9
  def generate(text):
10
  message=[{"role": "user", "content": text}]
 
4
  import openai
5
 
6
  model = "gpt-3.5-turbo"
7
+ openai.api_key = os.environ['openai_key']
8
 
9
  def generate(text):
10
  message=[{"role": "user", "content": text}]