Spaces:
Runtime error
Runtime error
Update ai_generate.py
Browse files- 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 =
|
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}]
|