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

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 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']
 
1
  from sentence_transformers import CrossEncoder
2
  model = CrossEncoder('cross-encoder/nli-deberta-v3-large')
3
+ scores = model.predict([('The impact of the salivary alpha-amylase on the carbohydrate nutrient is negligible compared to that of the pancreatic amylase. In addition, the HCL in gastric juice, inactivates the enzyme, thus terminating further digestion of the carbohydrate component in the stomach. Much digestion occurs in the duodenum, the part of the small intestine where the pancreas empties into the GIT. In the duodenum, the starch, is present in the form of maltose, Maltriose and limit dextrins, having being partially digested by the salivary and pancreatic amylases.', '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']