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

Add application file

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -38,7 +38,7 @@ def classify_output(item):
38
  'LABEL_2': 'Self',
39
  'LABEL_3': 'Motivation',
40
  'LABEL_4': 'Attention',
41
- 'LABEL_5': 'Overt_Behavior',
42
  'LABEL_6': 'Context'
43
  }
44
 
@@ -136,12 +136,14 @@ demo = gr.Interface(fn=classify_output, inputs=txtbx, outputs=txtbxopt,
136
  title = 'EEMM Item Classification Machine V 0.5',
137
  description = """
138
 
139
- This machine classifies items It classifies items in 7 EEMM dimensions following (ref).
140
 
141
- **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 ;)**""",
 
 
142
  article = article_text,
143
  allow_flagging = 'manual',
144
- flagging_options = ['Wrong category','Lacks a category'],
145
  flagging_callback= hf_writer
146
  )
147
  demo.launch()
 
38
  'LABEL_2': 'Self',
39
  'LABEL_3': 'Motivation',
40
  'LABEL_4': 'Attention',
41
+ 'LABEL_5': 'Overt Behavior',
42
  'LABEL_6': 'Context'
43
  }
44
 
 
136
  title = 'EEMM Item Classification Machine V 0.5',
137
  description = """
138
 
139
+ ¡Hello! This use two machine learning models to classify items and phrases into the EEMM grid. It will output a classification for dimensions as Cognition, Self, Affect, Motivation, Attention, Overt Behavior or Context. It Will also output levels as Social, Psychological or Physical.
140
 
141
+ This is a proof of concept, so the model will not be perfect right away and may make some mistakes. **You can help us improve the models by flagging wrong answers**. Using the buttons below the output you can tell us the output lacks a category, or if levels and/or dimensions are wrong. When flagging, your item/phrase will be saved with your answer. We only save flagged items.
142
+
143
+ **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 ;)""",
144
  article = article_text,
145
  allow_flagging = 'manual',
146
+ flagging_options = ['Wrong dimension/level','Lacks dimension/level', 'Wrong and lacking :('],
147
  flagging_callback= hf_writer
148
  )
149
  demo.launch()