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 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.', '
|
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']
|