Spaces:
Runtime error
Runtime error
Commit
·
ae06911
1
Parent(s):
7fedf03
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,8 @@ import os
|
|
| 2 |
import openai
|
| 3 |
import gradio
|
| 4 |
|
| 5 |
-
|
|
|
|
| 6 |
|
| 7 |
messages = [{"role": "system", "content": "You are an expert Python developer and more programming languages with years of experience writing Python code and teaching Python to other programmers"}]
|
| 8 |
|
|
|
|
| 2 |
import openai
|
| 3 |
import gradio
|
| 4 |
|
| 5 |
+
api_key = os.environ["OPENAI_API_KEY"]
|
| 6 |
+
openai.api_key = api_key
|
| 7 |
|
| 8 |
messages = [{"role": "system", "content": "You are an expert Python developer and more programming languages with years of experience writing Python code and teaching Python to other programmers"}]
|
| 9 |
|