Spaces:
Sleeping
Sleeping
Commit
·
b12e8b0
1
Parent(s):
81dd153
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
import openai
|
2 |
import gradio as gr
|
3 |
|
4 |
-
|
5 |
|
6 |
message=[{"role":"system","content":"You are expert in explaining things in brief way"}]
|
7 |
try:
|
8 |
-
openai.api_key="
|
9 |
def ChatReply(Question):
|
10 |
|
11 |
message.append({"role":"user","content": Question})
|
|
|
1 |
import openai
|
2 |
import gradio as gr
|
3 |
|
4 |
+
openai.api_key = os.environ["apikey"]
|
5 |
|
6 |
message=[{"role":"system","content":"You are expert in explaining things in brief way"}]
|
7 |
try:
|
8 |
+
openai.api_key = os.environ["apikey"]
|
9 |
def ChatReply(Question):
|
10 |
|
11 |
message.append({"role":"user","content": Question})
|