Spaces:
Runtime error
Runtime error
Commit
·
670446c
1
Parent(s):
8982410
Upload script.py
Browse files
script.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import openai
|
2 |
+
|
3 |
+
openai.api_key = "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"
|
4 |
+
|
5 |
+
completion = openai.ChatCompletion.create(model="gpt-3.5-turbo", messages=[{"role": "user", "content": "Give me 3 ideas for apps I could build with openai apis "}])
|
6 |
+
|
7 |
+
print(completion.choices[0].message.content)
|