Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ prompt = '假设你是一位优秀的Python老师,一步步教我PYTHONE,每
|
|
| 15 |
def chat(p, qid, uid):
|
| 16 |
return ["text", callapi(p)]
|
| 17 |
|
| 18 |
-
openai.api_key = os.getenv("
|
| 19 |
def callapi(p):
|
| 20 |
response = openai.ChatCompletion.create(
|
| 21 |
model="gpt-3.5-turbo",
|
|
|
|
| 15 |
def chat(p, qid, uid):
|
| 16 |
return ["text", callapi(p)]
|
| 17 |
|
| 18 |
+
openai.api_key = os.getenv("key1")
|
| 19 |
def callapi(p):
|
| 20 |
response = openai.ChatCompletion.create(
|
| 21 |
model="gpt-3.5-turbo",
|