Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -78,15 +78,16 @@ def analyze_text(text):
|
|
78 |
# Create the Gradio interface
|
79 |
interface = gr.Interface(
|
80 |
fn=analyze_text,
|
81 |
-
inputs=gr.
|
82 |
outputs=[
|
83 |
-
gr.
|
84 |
-
gr.
|
85 |
-
gr.
|
86 |
],
|
87 |
title="Nuanced Bias and Microaggression Detection",
|
88 |
description="Analyze text for nuanced bias categories such as implicit hate, explicit hate, or white grievance, and detect microaggressions to provide suggestions for improvement."
|
89 |
)
|
90 |
|
|
|
91 |
# Launch the interface
|
92 |
interface.launch()
|
|
|
78 |
# Create the Gradio interface
|
79 |
interface = gr.Interface(
|
80 |
fn=analyze_text,
|
81 |
+
inputs=gr.Textbox(lines=5, placeholder="Enter text to analyze..."),
|
82 |
outputs=[
|
83 |
+
gr.Textbox(label="Classification"),
|
84 |
+
gr.Textbox(label="Suggestion"),
|
85 |
+
gr.Textbox(label="Explanation")
|
86 |
],
|
87 |
title="Nuanced Bias and Microaggression Detection",
|
88 |
description="Analyze text for nuanced bias categories such as implicit hate, explicit hate, or white grievance, and detect microaggressions to provide suggestions for improvement."
|
89 |
)
|
90 |
|
91 |
+
|
92 |
# Launch the interface
|
93 |
interface.launch()
|