Cristóbal Hernández commited on
Commit
bdf1b34
·
1 Parent(s): b16e51e

Add application file

Browse files
Files changed (1) hide show
  1. app.py +1 -14
app.py CHANGED
@@ -128,20 +128,7 @@ demo = gr.Interface(fn=classify_output, inputs=txtbx, outputs=txtbxopt,
128
  theme = gr.themes.Soft(primary_hue='orange'),
129
  title = 'EEMM Item Classification Machine V 0.5',
130
  description = 'This machine is a fine tuned version of DistillBERT. It classifies items in 7 EEMM dimensions following (ref). **Please note that the machine goes idle after a period of inactivity. If this occurs, waking it up may take around 20 seconds. Be patient ;)**',
131
- article = """
132
- ## Affect/Emotion
133
- This category is concerned with how people feel or respond to emotions. It includes bodily sensations. Inner Experience described as pleasant or unpleasant. Sentences with words relating to emotions, feelings, affect, or mood. Sentences about avoiding, suppressing, getting rid of, or controlling emotions. Phrases that indicate an intense emotional response belong here: e.g., I can't stand it, it is unbearable, it is intolerable.
134
-
135
- ## Cognition
136
- Statements that center on beliefs, thoughts, or cognitive reactions to situations. Includes judgments, assessments, or reflections on events or circumstances. Includes inferences and rules that don’t directly have to do with the self. Silently saying things to yourself would fall here, whereas if it was saying something *out loud*, it would be overt behavior. Blame, if not said *out loud* to a person, would be cognition, as it involves attributing the issue to someone. "Shoulds" and "musts" go here, (but may include additional categories).
137
-
138
- ## Attention
139
- Sentences that discuss what people are focusing on or paying attention to, including awareness of emotions, thoughts, or sensations. Ability or inability to shift attention, and preoccupations that include phrases like worry or ruminate, e.g., I was worrying about x all day; I kept ruminating about the past.
140
-
141
- ## Motivation
142
- Statements focusing on what drives actions or behaviors. Includes stating what one values, expressing the desire to achieve particular goals, or giving reasons for acting, such as compliance or values. Also about wishing or hoping for something, which implies value. Phrases about "not caring for *something*" relates to motivation. Sentences about wanting to give up or escape may also imply motivation, e.g., escaping an aversive or an absence of motivation.
143
- """,
144
-
145
  allow_flagging = 'manual',
146
  flagging_options = ['Wrong category','Lacks a category'],
147
  flagging_callback= hf_writer
 
128
  theme = gr.themes.Soft(primary_hue='orange'),
129
  title = 'EEMM Item Classification Machine V 0.5',
130
  description = 'This machine is a fine tuned version of DistillBERT. It classifies items in 7 EEMM dimensions following (ref). **Please note that the machine goes idle after a period of inactivity. If this occurs, waking it up may take around 20 seconds. Be patient ;)**',
131
+ article = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',
 
 
 
 
 
 
 
 
 
 
 
 
 
132
  allow_flagging = 'manual',
133
  flagging_options = ['Wrong category','Lacks a category'],
134
  flagging_callback= hf_writer