Liusuthu commited on
Commit
37de431
β€’
1 Parent(s): 51ce343

Update chat.py

Browse files
Files changed (1) hide show
  1. chat.py +2 -2
chat.py CHANGED
@@ -1,9 +1,9 @@
1
  from openai import OpenAI
2
  import gradio as gr
3
 
4
-
5
- client = OpenAI(api_key=api_key)
6
  OpenAI.api_key = os.getenv("OPENAI_API_KEY")
 
 
7
 
8
 
9
  def predict(message, history):
 
1
  from openai import OpenAI
2
  import gradio as gr
3
 
 
 
4
  OpenAI.api_key = os.getenv("OPENAI_API_KEY")
5
+ client = OpenAI(api_key=api_key)
6
+
7
 
8
 
9
  def predict(message, history):