Spaces:
Runtime error
Runtime error
inclusive-ml
commited on
Commit
•
91b03e9
1
Parent(s):
e95b0bd
gender bias of sentence
Browse files
app.py
CHANGED
@@ -23,6 +23,12 @@ def interpret_gender(sentence):
|
|
23 |
return interpretation
|
24 |
|
25 |
app = gr.Interface(
|
26 |
-
fn=gender_of_sentence,
|
27 |
-
|
28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
return interpretation
|
24 |
|
25 |
app = gr.Interface(
|
26 |
+
fn=gender_of_sentence,
|
27 |
+
inputs=gr.inputs.Textbox(default="She went to his house to get her keys."),
|
28 |
+
outputs="label",
|
29 |
+
interpretation=interpret_gender,
|
30 |
+
enable_queue=True,
|
31 |
+
title="Gender bias",
|
32 |
+
description="Determines how many sentences are male / female",
|
33 |
+
)
|
34 |
+
app.launch(debug=True)
|