Miranda2023 commited on
Commit
0d15ac6
·
1 Parent(s): e148f2b

app create

Browse files
Files changed (1) hide show
  1. selfinstruct/instance.py +1 -1
selfinstruct/instance.py CHANGED
@@ -317,7 +317,7 @@ def instance_main(inputs, key):
317
  temperature=1
318
  )
319
  except OpenAIError:
320
- return "Wrong Key!", " ", " ", " "
321
  api_key = key
322
  inputs = inputs.split('\n')
323
  print("***", inputs)
 
317
  temperature=1
318
  )
319
  except OpenAIError:
320
+ return {"Wrong": "Key!"}, " ", " ", " "
321
  api_key = key
322
  inputs = inputs.split('\n')
323
  print("***", inputs)