Spaces:
Runtime error
Runtime error
Commit
·
1573992
1
Parent(s):
6cedb2c
Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,7 @@ def evaluate_comment(Comment):
|
|
13 |
|
14 |
return text
|
15 |
|
16 |
-
interface = gr.Interface(fn = evaluate_comment, inputs = gr.inputs.Textbox(lines = 4, placeholder='Comment to evaluate'),
|
|
|
17 |
|
18 |
-
interface.launch()
|
|
|
13 |
|
14 |
return text
|
15 |
|
16 |
+
interface = gr.Interface(fn = evaluate_comment, live=True, inputs = gr.inputs.Textbox(lines = 4, placeholder='Comment to evaluate'),
|
17 |
+
outputs = 'text', description="An NLP model that classifies level of toxicity of the sentence."))
|
18 |
|
19 |
+
interface.launch(debug=True, inline=True)
|