Spaces:
Runtime error
Runtime error
d.tsimerman
commited on
Commit
•
8f0e355
1
Parent(s):
e5bf820
round
Browse files
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...'):
|