thecodemasster commited on
Commit
2b726d0
·
verified ·
1 Parent(s): fc2610a

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 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']
 
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.', 'Salivary alpha-amylase has a minimal effect on carbohydrate digestion compared to pancreatic amylase. Additionally, hydrochloric acid (HCl) in gastric juice inactivates salivary amylase, halting carbohydrate digestion in the stomach. The majority of carbohydrate digestion occurs in the duodenum, where the pancreas releases its enzymes into the gastrointestinal tract. In the duodenum, partially digested starch exists as maltose, maltriose, and limit dextrins, resulting from the combined action of salivary and pancreatic amylases.'), ('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']