d.tsimerman commited on
Commit
8f0e355
1 Parent(s): e5bf820
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -97,7 +97,7 @@ def inference(model_name: str, sample: dict):
97
  tokens = merge_dialog_data(tokenizer, tokenized_dialog)
98
  with torch.inference_mode():
99
  logits = model(**tokens).logits
100
- probas = torch.sigmoid(logits)[0].cpu().detach().numpy()
101
  return probas
102
 
103
  with st.spinner('Running inference...'):
 
97
  tokens = merge_dialog_data(tokenizer, tokenized_dialog)
98
  with torch.inference_mode():
99
  logits = model(**tokens).logits
100
+ probas = torch.sigmoid(logits)[0].cpu().detach().numpy().tolist()
101
  return probas
102
 
103
  with st.spinner('Running inference...'):