toastlightning commited on
Commit
b20e346
·
verified ·
1 Parent(s): d8d1e86

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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.inputs.Textbox(lines=5, placeholder="Enter text to analyze..."),
82
  outputs=[
83
- gr.outputs.Textbox(label="Classification"),
84
- gr.outputs.Textbox(label="Suggestion"),
85
- gr.outputs.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
  # 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()