tanveeshsingh commited on
Commit
e7c37c2
·
1 Parent(s): 6807272
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -62,7 +62,7 @@ Now, please output the following as a JSON object:
62
  output = completion.choices[0].message.content
63
  output = json.loads(output)
64
  print(output)
65
- if output.output==1:
66
  return 'safe'
67
  else:
68
  return 'unsafe'
 
62
  output = completion.choices[0].message.content
63
  output = json.loads(output)
64
  print(output)
65
+ if output['output']==1:
66
  return 'safe'
67
  else:
68
  return 'unsafe'