Spaces:
Sleeping
Sleeping
birkancelik18
commited on
Commit
•
ebe8a2b
1
Parent(s):
91ef23a
fix syntax error
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import os
|
|
2 |
import openai
|
3 |
import gradio
|
4 |
|
5 |
-
openai.api_key = os.environ
|
6 |
|
7 |
messages = [{"role": "system", "content": "You are an intelligent assistant."}]
|
8 |
|
|
|
2 |
import openai
|
3 |
import gradio
|
4 |
|
5 |
+
openai.api_key = os.environ["OPENAI_API_KEY"]
|
6 |
|
7 |
messages = [{"role": "system", "content": "You are an intelligent assistant."}]
|
8 |
|