thecodemasster commited on
Commit
f2541db
·
verified ·
1 Parent(s): cdd34ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 hemiazygos vein, originates similarly in the abdomen, often as a continuation of the left ascending lumbar vein or from lumbar veins, and ascends through the left crus of the diaphragm into the thorax. It runs along the left side of the vertebral column, parallel to the azygos vein, and collects blood from the left posterior intercostal veins (typically from the 9th to 11th intercostal spaces), as well as esophageal and mediastinal veins. Around the T8 or T9 vertebral level, the hemiazygos vein crosses the midline posterior to the aorta and thoracic duct to join the azygos vein, forming a transverse anastomosis. In some individuals, the hemiazygos vein may be supplemented by an accessory hemiazygos vein, which drains the upper left intercostal spaces (4th to 8th) and typically joins the azygos vein at a higher level, around T7 or T8, or may connect to the hemiazygos vein itself. The azygos and hemiazygos veins thus form a symmetrical yet functionally interconnected system, with the azygos vein serving as the primary drainage channel on the right and the hemiazygos vein (along with the accessory hemiazygos, if present) handling drainage on the left, ultimately converging to facilitate venous return to the superior vena cava. This system is highly variable, with potential communications to the inferior vena cava, renal veins, or other abdominal veins, reflecting its embryological origins from the posterior cardinal veins.'), ('A boy is dancing', 'A man is driving down a lonely road.')])
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']