Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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"""
|