Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ import numpy as np
|
|
13 |
import time
|
14 |
|
15 |
# Set up OpenAI API key
|
16 |
-
openai.api_key =
|
17 |
|
18 |
Init_system_prompt = "You are an AI Assistant that tries to teach kids various subjects. You are given learning material and you task is to ask questions given the material and then you also grade answers and give feedback how to improve the answers"
|
19 |
system_message = {"role": "system", "content": Init_system_prompt}
|
|
|
13 |
import time
|
14 |
|
15 |
# Set up OpenAI API key
|
16 |
+
openai.api_key = os.environ["CHATGPT_API_KEY"]
|
17 |
|
18 |
Init_system_prompt = "You are an AI Assistant that tries to teach kids various subjects. You are given learning material and you task is to ask questions given the material and then you also grade answers and give feedback how to improve the answers"
|
19 |
system_message = {"role": "system", "content": Init_system_prompt}
|