thecodemasster commited on
Commit
226cbf7
·
verified ·
1 Parent(s): 50164b9

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 process of synthesis of glycogen called glycogenis, occurs in the liver and in the muscle. The first reaction of glycogenesis is the phosphrylation of glucose into glucose-6-phosphate at the expense of ATP. The enzymes, hexokinase and glucokinase mediate the glucose phosphorylation process. While the liver harbours both hexokinase and glucokinase, the muscluature contains only hexokinase.', 'The process of synthesis of glycogen called glycogenis, occurs in the heart and in the muscle. The first reaction of glycogenesis is the phosphrylation of frutose into glucose-6-phosphate at the expense of ATP. The enzymes, hexokinase and glucokinase mediate the frutose phosphorylation process. While the kidney harbours both hexokinase and glucagon, the muscluature contains only hexokinase.'), ('A black race car starts up in front of a crowd of people.', '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 process of synthesis of glycogen called glycogenis, occurs in the liver and in the muscle. The first reaction of glycogenesis is the phosphrylation of glucose into glucose-6-phosphate at the expense of ATP. The enzymes, hexokinase and glucokinase mediate the glucose phosphorylation process. While the liver harbours both hexokinase and glucokinase, the muscluature contains only hexokinase.', 'The process of synthesis of glycogen called glycogenis, occurs in the liver and in the muscle. The first reaction of glycogenesis is the phosphrylation of glucose into glucose-6-phosphate at the expense of ATP. The enzymes, hexokinase and glucokinase mediate the glucose phosphorylation process. While the liver harbours both hexokinase and glucokinase, the muscluature contains only hexokinase.'), ('A black race car starts up in front of a crowd of people.', 'A man is driving down a lonely road.')])
4
 
5
  #Convert scores to labels
6
  label_mapping = ['contradiction', 'entailment', 'neutral']