Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
from sentence_transformers import CrossEncoder
|
2 |
model = CrossEncoder('cross-encoder/nli-deberta-v3-large')
|
3 |
-
scores = model.predict([('The azygos vein originates in the abdomen, typically at the level of the first or second lumbar vertebra, often as a continuation of the right ascending lumbar vein or from a confluence of lumbar veins. It ascends through the aortic hiatus of the diaphragm at approximately the T12 vertebral level, entering the thorax. In the thoracic cavity, it courses along the right side of the vertebral column, lying anterior to the vertebral bodies and posterior to the esophagus. As it ascends, it receives tributaries from the right posterior intercostal veins (typically from the 4th to 11th intercostal spaces), the right bronchial veins, esophageal veins, and mediastinal veins. At the level of the T4 or T5 vertebra, the azygos vein arches anteriorly over the root of the right lung, passing over the right bronchus and trachea, to drain into the superior vena cava. In some cases, it may also receive drainage from the right superior intercostal vein, which collects blood from the upper intercostal spaces (2nd and 3rd). he azygos vein serves as a critical connection between the superior and inferior vena cava systems, acting as a collateral pathway in cases of venous obstruction.', 'The
|
4 |
|
5 |
#Convert scores to labels
|
6 |
label_mapping = ['contradiction', 'entailment', 'neutral']
|
|
|
1 |
from sentence_transformers import CrossEncoder
|
2 |
model = CrossEncoder('cross-encoder/nli-deberta-v3-large')
|
3 |
+
scores = model.predict([('The azygos vein originates in the abdomen, typically at the level of the first or second lumbar vertebra, often as a continuation of the right ascending lumbar vein or from a confluence of lumbar veins. It ascends through the aortic hiatus of the diaphragm at approximately the T12 vertebral level, entering the thorax. In the thoracic cavity, it courses along the right side of the vertebral column, lying anterior to the vertebral bodies and posterior to the esophagus. As it ascends, it receives tributaries from the right posterior intercostal veins (typically from the 4th to 11th intercostal spaces), the right bronchial veins, esophageal veins, and mediastinal veins. At the level of the T4 or T5 vertebra, the azygos vein arches anteriorly over the root of the right lung, passing over the right bronchus and trachea, to drain into the superior vena cava. In some cases, it may also receive drainage from the right superior intercostal vein, which collects blood from the upper intercostal spaces (2nd and 3rd). he azygos vein serves as a critical connection between the superior and inferior vena cava systems, acting as a collateral pathway in cases of venous obstruction.', 'The azygos vein originates in the abdomen, typically at the level of the first or second lumbar vertebra, often as a continuation of the right ascending lumbar vein or from a confluence of lumbar veins. It ascends through the aortic hiatus of the diaphragm at approximately the T12 vertebral level, entering the thorax. In the thoracic cavity, it courses along the right side of the vertebral column, lying anterior to the vertebral bodies and posterior to the esophagus.'), ('A boy is dancing', 'A man is driving down a lonely road.')])
|
4 |
|
5 |
#Convert scores to labels
|
6 |
label_mapping = ['contradiction', 'entailment', 'neutral']
|