bstraehle commited on
Commit
11f1501
·
verified ·
1 Parent(s): cc3cc81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -30,6 +30,7 @@ from assistants import (
30
 
31
  def chat(message, history, openai_api_key):
32
  if not openai_api_key:
 
33
  raise gr.Error("OpenAI API Key is required (see additional inputs below).")
34
  if not message:
35
  raise gr.Error("Message is required.")
 
30
 
31
  def chat(message, history, openai_api_key):
32
  if not openai_api_key:
33
+ set_openai_client()
34
  raise gr.Error("OpenAI API Key is required (see additional inputs below).")
35
  if not message:
36
  raise gr.Error("Message is required.")