Spaces:
Sleeping
Sleeping
HaoMingSun
commited on
Commit
•
b2d4a19
1
Parent(s):
effe4ef
Update app.py
Browse files
app.py
CHANGED
@@ -3,9 +3,9 @@ import gradio as gr
|
|
3 |
import os
|
4 |
|
5 |
# Set your OpenAI API key
|
6 |
-
|
7 |
|
8 |
-
client = OpenAI(api_key="
|
9 |
|
10 |
#greetings = ["hello", "hi", "hey", "greetings", "good morning", "good afternoon", "good evening"]
|
11 |
|
|
|
3 |
import os
|
4 |
|
5 |
# Set your OpenAI API key
|
6 |
+
client = OpenAI(api_key=os.environ["APITOKEN"])
|
7 |
|
8 |
+
#client = OpenAI(api_key="")
|
9 |
|
10 |
#greetings = ["hello", "hi", "hey", "greetings", "good morning", "good afternoon", "good evening"]
|
11 |
|