michal commited on
Commit
172cdd5
1 Parent(s): 5031f81
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -502,7 +502,7 @@ class ChatWrapper:
502
  output = AUTH_ERR_MSG
503
  hidden_text = output
504
 
505
- if chain and chain != "":
506
  # Set OpenAI key
507
  import openai
508
  openai.api_key = os.environ["OPENAI_API_KEY"] # OPENAI_API_KEY
 
502
  output = AUTH_ERR_MSG
503
  hidden_text = output
504
 
505
+ if chain:
506
  # Set OpenAI key
507
  import openai
508
  openai.api_key = os.environ["OPENAI_API_KEY"] # OPENAI_API_KEY