Spaces:
Running
Running
Gopala Krishna
commited on
Commit
·
49374c1
1
Parent(s):
95ad623
moved openapi key
Browse files
.vs/MyChatGPTTurbo/FileContentIndex/a3a27069-9725-4970-9e9b-a70449614ce6.vsidx
DELETED
Binary file (4.96 kB)
|
|
.vs/MyChatGPTTurbo/FileContentIndex/d9c2ef8b-7948-46ad-9281-0d97adf3f188.vsidx
ADDED
Binary file (269 Bytes). View file
|
|
.vs/MyChatGPTTurbo/v17/.wsuo
CHANGED
Binary files a/.vs/MyChatGPTTurbo/v17/.wsuo and b/.vs/MyChatGPTTurbo/v17/.wsuo differ
|
|
.vs/slnx.sqlite
CHANGED
Binary files a/.vs/slnx.sqlite and b/.vs/slnx.sqlite differ
|
|
app.py
CHANGED
@@ -1,7 +1,8 @@
|
|
|
|
1 |
import openai
|
2 |
import gradio as gr
|
3 |
|
4 |
-
openai.api_key = "
|
5 |
|
6 |
messages = [
|
7 |
{"role": "system", "content": "My AI Assistant"},
|
|
|
1 |
+
import os
|
2 |
import openai
|
3 |
import gradio as gr
|
4 |
|
5 |
+
openai.api_key = os.environ["OPENAPI_API_KEY"]
|
6 |
|
7 |
messages = [
|
8 |
{"role": "system", "content": "My AI Assistant"},
|