Rafal commited on
Commit
46e1c9f
1 Parent(s): a4cea1f
Files changed (1) hide show
  1. mgr_requests.py +1 -1
mgr_requests.py CHANGED
@@ -59,7 +59,7 @@ def _generateOnline(bias_spec, progress, key, num2gen, isSaving=False):
59
  models = oai_mgr.initOpenAI(key)
60
  model_names = [m['id'] for m in models['data']]
61
  print(f"Model names: {model_names}")
62
- except openai.error.AuthenticationError as err:
63
  #raise gr.Error(OPENAI_INIT_ERROR.replace("<ERR>", str(err)))
64
  gen_err_msg = OPENAI_INIT_ERROR.replace("<ERR>", str(err))
65
 
 
59
  models = oai_mgr.initOpenAI(key)
60
  model_names = [m['id'] for m in models['data']]
61
  print(f"Model names: {model_names}")
62
+ except openai.AuthenticationError as err:
63
  #raise gr.Error(OPENAI_INIT_ERROR.replace("<ERR>", str(err)))
64
  gen_err_msg = OPENAI_INIT_ERROR.replace("<ERR>", str(err))
65