David Kagramanyan commited on
Commit
a59a366
1 Parent(s): a2d5bd8

changed inteerface language

Browse files
Files changed (2) hide show
  1. app.py +3 -1
  2. ner_v0_model.ipynb +2 -2
app.py CHANGED
@@ -52,6 +52,8 @@ def compute_ner(input_text_message):
52
  examples = ['You are dick',
53
  'My dad is an asshole and took his anger out on my mom by verbally abusing her',
54
  'He eventually moved on to my brother']
55
- iface = gr.Interface(fn=compute_ner, inputs=gr.inputs.Textbox(lines=5, placeholder="Enter your text here"),
 
 
56
  outputs="html", examples=examples)
57
  iface.launch()
 
52
  examples = ['You are dick',
53
  'My dad is an asshole and took his anger out on my mom by verbally abusing her',
54
  'He eventually moved on to my brother']
55
+
56
+ iface = gr.Interface(fn=compute_ner, inputs=gr.inputs.Textbox(lines=5, placeholder="Enter your text here",
57
+ label='Check your text for compliance with the NVC rules'),
58
  outputs="html", examples=examples)
59
  iface.launch()
ner_v0_model.ipynb CHANGED
@@ -72,8 +72,8 @@
72
  "examples = ['You are dick',\n",
73
  " 'My dad is an asshole and took his anger out on my mom by verbally abusing her','He eventually moved on to my brother']\n",
74
  "\n",
75
- "iface = gr.Interface(fn=compute_ner, inputs=gr.inputs.Textbox(lines=5, placeholder=\"Enter your text here\"),\n",
76
- " outputs=\"html\", examples=examples)\n",
77
  "iface.launch(debug=True)"
78
  ],
79
  "metadata": {
 
72
  "examples = ['You are dick',\n",
73
  " 'My dad is an asshole and took his anger out on my mom by verbally abusing her','He eventually moved on to my brother']\n",
74
  "\n",
75
+ "iface = gr.Interface(fn=compute_ner, inputs=gr.inputs.Textbox(lines=5, placeholder=\"Enter your text here\",label='Check your text on NVC rules'),\n",
76
+ " outputs=\"html\", examples=examples,)\n",
77
  "iface.launch(debug=True)"
78
  ],
79
  "metadata": {