Spaces:
Runtime error
Runtime error
David Kagramanyan
commited on
Commit
·
a2d5bd8
1
Parent(s):
d89f10f
updated examples
Browse files- app.py +2 -2
- ner_v0_model.ipynb +2 -2
app.py
CHANGED
@@ -50,8 +50,8 @@ def compute_ner(input_text_message):
|
|
50 |
|
51 |
|
52 |
examples = ['You are dick',
|
53 |
-
'My dad is an asshole and took his anger out on my mom by verbally abusing her
|
54 |
-
|
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()
|
|
|
50 |
|
51 |
|
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()
|
ner_v0_model.ipynb
CHANGED
@@ -70,11 +70,11 @@
|
|
70 |
"\n",
|
71 |
"\n",
|
72 |
"examples = ['You are dick',\n",
|
73 |
-
" 'My dad is an asshole and took his anger out on my mom by verbally abusing her
|
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()"
|
78 |
],
|
79 |
"metadata": {
|
80 |
"collapsed": false,
|
|
|
70 |
"\n",
|
71 |
"\n",
|
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": {
|
80 |
"collapsed": false,
|