Spaces:
Runtime error
Runtime error
Rachel1809
commited on
Commit
•
4a1f3f9
1
Parent(s):
cda2e22
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def evaluate_comment(Comment):
|
|
13 |
|
14 |
return text
|
15 |
|
16 |
-
interface = gr.Interface(fn = evaluate_comment,
|
17 |
outputs = 'text', description="An NLP model that classifies level of toxicity of the sentence.")
|
18 |
|
19 |
-
interface.launch(
|
|
|
13 |
|
14 |
return text
|
15 |
|
16 |
+
interface = gr.Interface(fn = evaluate_comment, 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()
|