abdulmatinomotoso commited on
Commit
b73ef4f
1 Parent(s): fee5906

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -18,7 +18,6 @@ def get_probs(logits, threshold=0.5):
18
  sigm = 1 / (1 + np.exp(-logits))
19
  return sigm
20
 
21
-
22
  def multi_label_emotions(text):
23
  inputs = tokenizer(text, return_tensors="pt", truncation=True)
24
  model.to(device)
@@ -48,6 +47,5 @@ demo = gr.Interface(multi_label_emotions, inputs=gr.inputs.Textbox(),
48
  outputs = gr.Label(num_top_classes=16),
49
  title='Multi-label-emotion-classification')
50
 
51
-
52
  if __name__ == '__main__':
53
  demo.launch(debug=True)
 
18
  sigm = 1 / (1 + np.exp(-logits))
19
  return sigm
20
 
 
21
  def multi_label_emotions(text):
22
  inputs = tokenizer(text, return_tensors="pt", truncation=True)
23
  model.to(device)
 
47
  outputs = gr.Label(num_top_classes=16),
48
  title='Multi-label-emotion-classification')
49
 
 
50
  if __name__ == '__main__':
51
  demo.launch(debug=True)