Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,8 @@
|
|
1 |
|
2 |
import os
|
3 |
import openai
|
4 |
-
import creds
|
5 |
|
6 |
-
openai.api_key=
|
7 |
|
8 |
def get_completion(prompt, model="gpt-3.5-turbo"):
|
9 |
messages = [{"role": "user", "content": prompt}]
|
|
|
1 |
|
2 |
import os
|
3 |
import openai
|
|
|
4 |
|
5 |
+
openai.api_key="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"
|
6 |
|
7 |
def get_completion(prompt, model="gpt-3.5-turbo"):
|
8 |
messages = [{"role": "user", "content": prompt}]
|