dudegladiator commited on
Commit
ce55a61
·
1 Parent(s): f427874

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,10 +1,10 @@
1
  import openai
2
  import gradio as gr
3
-
4
 
5
  message=[{"role":"system","content":"You are expert in explaining things in brief way"}]
6
  try:
7
- openai.api_key = apikey
8
  def ChatReply(Question):
9
 
10
  message.append({"role":"user","content": Question})
 
1
  import openai
2
  import gradio as gr
3
+ import os
4
 
5
  message=[{"role":"system","content":"You are expert in explaining things in brief way"}]
6
  try:
7
+ openai.api_key = os.environ["apikey"]
8
  def ChatReply(Question):
9
 
10
  message.append({"role":"user","content": Question})