Spaces:
Sleeping
Sleeping
wzkariampuzha
commited on
Commit
•
32ef4d9
1
Parent(s):
6f99133
Update epi_pipeline.py
Browse files- epi_pipeline.py +1 -0
epi_pipeline.py
CHANGED
@@ -253,6 +253,7 @@ class Classify_Pipeline:
|
|
253 |
prob_tensor = output.logits.softmax(dim=-1)
|
254 |
# We only want to return the probability that it is true
|
255 |
prob = prob_tensor.data[0][1].item()
|
|
|
256 |
return prob, isEpi
|
257 |
else:
|
258 |
return 0.0, False
|
|
|
253 |
prob_tensor = output.logits.softmax(dim=-1)
|
254 |
# We only want to return the probability that it is true
|
255 |
prob = prob_tensor.data[0][1].item()
|
256 |
+
print(f"Abstract is epidemiological: {isEpi}")
|
257 |
return prob, isEpi
|
258 |
else:
|
259 |
return 0.0, False
|