Spaces:
Runtime error
Runtime error
Commit
·
f57f236
1
Parent(s):
6e102c5
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import openai
|
|
| 3 |
import os
|
| 4 |
|
| 5 |
# Set the API key for the OpenAI API
|
| 6 |
-
openai.api_key = os.
|
| 7 |
|
| 8 |
# Set the model to use (e.g. "text-davinci-002")
|
| 9 |
model = "text-davinci-002"
|
|
|
|
| 3 |
import os
|
| 4 |
|
| 5 |
# Set the API key for the OpenAI API
|
| 6 |
+
openai.api_key = os.get_env(f"sk-YRCsXDG8DhNERtlkjX0ST3BlbkFJRPX6D04xFSAdGbbYext{1+1}")
|
| 7 |
|
| 8 |
# Set the model to use (e.g. "text-davinci-002")
|
| 9 |
model = "text-davinci-002"
|