jayasuriyaK commited on
Commit
70901e5
1 Parent(s): 2e020c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -115,7 +115,7 @@ if uploaded_file is not None:
115
  outputs = model(**inputs)
116
  predictions = outputs.logits.softmax(dim=-1)
117
  print(predictions[0][0],predictions[0][1])
118
- if predictions[0][1]>predictions[0][0]:
119
  print('safe')
120
  st.write('Safe for Work')
121
  else:
 
115
  outputs = model(**inputs)
116
  predictions = outputs.logits.softmax(dim=-1)
117
  print(predictions[0][0],predictions[0][1])
118
+ if predictions[0][0]>predictions[0][1]:
119
  print('safe')
120
  st.write('Safe for Work')
121
  else: