abdulmatinomotoso commited on
Commit
a1cb754
1 Parent(s): 93bbccc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -19,6 +19,7 @@ def get_adult_content(text):
19
  softmax = torch.nn.Softmax(dim=1)
20
  probs = softmax(logits)[0]
21
  probs = probs.cpu().detach().numpy()
 
22
  max_index = np.argmax(probs)
23
  adult_content = labels[max_index]
24
  return adult_content
 
19
  softmax = torch.nn.Softmax(dim=1)
20
  probs = softmax(logits)[0]
21
  probs = probs.cpu().detach().numpy()
22
+
23
  max_index = np.argmax(probs)
24
  adult_content = labels[max_index]
25
  return adult_content