thecodemasster commited on
Commit
420067b
·
verified ·
1 Parent(s): 0c115da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -1,8 +1,6 @@
1
  from sentence_transformers import CrossEncoder
2
  model = CrossEncoder('cross-encoder/nli-deberta-v3-large')
3
- scores = model.predict([('Glycogen synthesis, also known as glycogenesis, is the biological process by which glucose molecules are assembled into glycogen, a branched polysaccharide that serves as the primary storage form of glucose in animals and humans. This process primarily occurs in the liver and skeletal muscles, where glycogen is stored for later use as an energy source. Glycogenesis begins when glucose enters cells, typically after a meal when blood glucose levels are elevated. The enzyme hexokinase (or glucokinase in the liver) phosphorylates glucose to form glucose-6-phosphate, a critical step that traps glucose inside the cell and prepares it for further processing. Glucose-6-phosphate is then converted to glucose-1-phosphate by the enzyme phosphoglucomutase, setting the stage for glycogen formation.
4
- The next phase involves the activation of glucose-1-phosphate into a high-energy molecule called UDP-glucose, facilitated by the enzyme UDP-glucose pyrophosphorylase. UDP-glucose serves as the building block for glycogen synthesis. The enzyme glycogen synthase then catalyzes the addition of UDP-glucose to an existing glycogen molecule or a primer called glycogenin, forming alpha-1,4-glycosidic bonds to create linear chains of glucose. To form the branched structure characteristic of glycogen, the enzyme branching enzyme (amylo-1,4 to 1,6-transglucosidase) transfers a segment of the glucose chain to create alpha-1,6-glycosidic bonds, introducing branches that enhance glycogen’s solubility and accessibility for rapid energy release. This process is tightly regulated by hormones like insulin, which promotes glycogenesis in response to high blood glucose, ensuring efficient storage. Conversely, hormones like glucagon and epinephrine inhibit glycogen synthesis during energy demand, favoring glycogen breakdown. Through these coordinated enzymatic and hormonal mechanisms, glycogenesis efficiently stores excess glucose as glycogen for future energy needs.', 'Glycogenesis, or glycogen synthesis, is the process through which glucose molecules are converted into glycogen, a branched polysaccharide that acts as the main glucose storage molecule in humans and animals. This process predominantly takes place in the liver and skeletal muscles, where glycogen is stockpiled for future energy needs. It starts when glucose enters cells, often after eating when blood glucose levels rise. The enzyme hexokinase (or glucokinase in the liver) adds a phosphate group to glucose, forming glucose-6-phosphate, which keeps glucose inside the cell and readies it for further steps. Phosphoglucomutase then transforms glucose-6-phosphate into glucose-1-phosphate, preparing it for glycogen assembly.
5
- In the subsequent stage, glucose-1-phosphate is converted into UDP-glucose, a high-energy molecule, by the enzyme UDP-glucose pyrophosphorylase. UDP-glucose acts as the key unit for building glycogen. Glycogen synthase facilitates the attachment of UDP-glucose to an existing glycogen molecule or a primer protein called glycogenin, creating linear glucose chains through alpha-1,4-glycosidic bonds. To achieve glycogen’s characteristic branched structure, the branching enzyme (amylo-1,4 to 1,6-transglucosidase) moves a portion of the glucose chain to form alpha-1,6-glycosidic bonds, adding branches that improve glycogen’s solubility and enable quick energy release. Hormonal regulation, particularly by insulin, promotes glycogenesis when blood glucose is high, ensuring effective storage. In contrast, hormones like glucagon and epinephrine suppress this process during energy needs, prioritizing glycogen breakdown. Through these enzymatic and hormonal controls, glycogenesis efficiently stores surplus glucose as glycogen for later use.'), ('A boy is dancing', 'A man is driving down a lonely road.')])
6
 
7
  #Convert scores to labels
8
  label_mapping = ['contradiction', 'entailment', 'neutral']
 
1
  from sentence_transformers import CrossEncoder
2
  model = CrossEncoder('cross-encoder/nli-deberta-v3-large')
3
+ scores = model.predict([("Glycogen synthesis, also known as glycogenesis, is the biological process by which glucose molecules are assembled into glycogen, a branched polysaccharide that serves as the primary storage form of glucose in animals and humans. This process primarily occurs in the liver and skeletal muscles, where glycogen is stored for later use as an energy source. Glycogenesis begins when glucose enters cells, typically after a meal when blood glucose levels are elevated. The enzyme hexokinase (or glucokinase in the liver) phosphorylates glucose to form glucose-6-phosphate, a critical step that traps glucose inside the cell and prepares it for further processing. Glucose-6-phosphate is then converted to glucose-1-phosphate by the enzyme phosphoglucomutase, setting the stage for glycogen formation.The next phase involves the activation of glucose-1-phosphate into a high-energy molecule called UDP-glucose, facilitated by the enzyme UDP-glucose pyrophosphorylase. UDP-glucose serves as the building block for glycogen synthesis. The enzyme glycogen synthase then catalyzes the addition of UDP-glucose to an existing glycogen molecule or a primer called glycogenin, forming alpha-1,4-glycosidic bonds to create linear chains of glucose. To form the branched structure characteristic of glycogen, the enzyme branching enzyme (amylo-1,4 to 1,6-transglucosidase) transfers a segment of the glucose chain to create alpha-1,6-glycosidic bonds, introducing branches that enhance glycogen’s solubility and accessibility for rapid energy release. This process is tightly regulated by hormones like insulin, which promotes glycogenesis in response to high blood glucose, ensuring efficient storage. Conversely, hormones like glucagon and epinephrine inhibit glycogen synthesis during energy demand, favoring glycogen breakdown. Through these coordinated enzymatic and hormonal mechanisms, glycogenesis efficiently stores excess glucose as glycogen for future energy needs.", "Glycogenesis, or glycogen synthesis, is the process through which glucose molecules are converted into glycogen, a branched polysaccharide that acts as the main glucose storage molecule in humans and animals. This process predominantly takes place in the liver and skeletal muscles, where glycogen is stockpiled for future energy needs. It starts when glucose enters cells, often after eating when blood glucose levels rise. The enzyme hexokinase (or glucokinase in the liver) adds a phosphate group to glucose, forming glucose-6-phosphate, which keeps glucose inside the cell and readies it for further steps. Phosphoglucomutase then transforms glucose-6-phosphate into glucose-1-phosphate, preparing it for glycogen assembly.In the subsequent stage, glucose-1-phosphate is converted into UDP-glucose, a high-energy molecule, by the enzyme UDP-glucose pyrophosphorylase. UDP-glucose acts as the key unit for building glycogen. Glycogen synthase facilitates the attachment of UDP-glucose to an existing glycogen molecule or a primer protein called glycogenin, creating linear glucose chains through alpha-1,4-glycosidic bonds. To achieve glycogen’s characteristic branched structure, the branching enzyme (amylo-1,4 to 1,6-transglucosidase) moves a portion of the glucose chain to form alpha-1,6-glycosidic bonds, adding branches that improve glycogen’s solubility and enable quick energy release. Hormonal regulation, particularly by insulin, promotes glycogenesis when blood glucose is high, ensuring effective storage. In contrast, hormones like glucagon and epinephrine suppress this process during energy needs, prioritizing glycogen breakdown. Through these enzymatic and hormonal controls, glycogenesis efficiently stores surplus glucose as glycogen for later use."), ('A boy is dancing', 'A man is driving down a lonely road.')])
 
 
4
 
5
  #Convert scores to labels
6
  label_mapping = ['contradiction', 'entailment', 'neutral']