Spaces:
Runtime error
Runtime error
Rachel1809
commited on
Commit
•
ca7dc37
1
Parent(s):
253cc30
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def evaluate_comment(Comment):
|
|
25 |
|
26 |
return text
|
27 |
|
28 |
-
interface = gr.Interface(fn = evaluate_comment,
|
29 |
outputs = gr.Textbox(lines=4, label='Evaluation'), description="An NLP model that classifies level of toxicity of the sentence.")
|
30 |
|
31 |
interface.launch()
|
|
|
25 |
|
26 |
return text
|
27 |
|
28 |
+
interface = gr.Interface(fn = evaluate_comment, title='ToxClass', inputs = gr.inputs.Textbox(lines = 4, label='Comment', placeholder='Comment to evaluate'),
|
29 |
outputs = gr.Textbox(lines=4, label='Evaluation'), description="An NLP model that classifies level of toxicity of the sentence.")
|
30 |
|
31 |
interface.launch()
|