lmarty commited on
Commit
d6d59ea
·
verified ·
1 Parent(s): 631b7f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -308,6 +308,10 @@ def parse_bias_response(bias_analysis_text):
308
  result['demographic_group'] = [t.strip() for t in demo_text.split(',')]
309
 
310
  return result
 
 
 
 
311
 
312
  def analyze_response(user_response):
313
  """Main analysis function for Gradio"""
 
308
  result['demographic_group'] = [t.strip() for t in demo_text.split(',')]
309
 
310
  return result
311
+
312
+ print("Loading models...")
313
+ bias_pipe, regard_classifier = setup_models()
314
+ print("Models loaded successfully!")
315
 
316
  def analyze_response(user_response):
317
  """Main analysis function for Gradio"""