Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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][
|
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:
|