Update app.py
Browse files
app.py
CHANGED
@@ -347,7 +347,7 @@ def run_hypothesis_testing(systems_data, selected_test_metrics, n_samples, signi
|
|
347 |
except Exception as bert_error:
|
348 |
return f"Error testing BERTScore evaluator: {str(bert_error)}", ""
|
349 |
|
350 |
-
if 'Word Count' in selected_test_metrics:
|
351 |
metrics['word_count'] = word_count_metric # ← example of a simple custom-defined metric
|
352 |
|
353 |
if not metrics:
|
@@ -499,7 +499,7 @@ with gr.Blocks(title="Null Hypothesis Testing", theme=gr.themes.Soft()) as hypot
|
|
499 |
with gr.Column(scale=1):
|
500 |
test_metrics_selection = gr.CheckboxGroup(
|
501 |
label="🎯 Select Metrics for Testing",
|
502 |
-
choices=["BLEU", "ROUGE", "BERTScore", "Word Count"],
|
503 |
value=["BLEU", "ROUGE", "BERTScore"],
|
504 |
interactive=True,
|
505 |
info="Only fast metrics are shown to ensure quick evaluation (slow ones are excluded)"
|
|
|
347 |
except Exception as bert_error:
|
348 |
return f"Error testing BERTScore evaluator: {str(bert_error)}", ""
|
349 |
|
350 |
+
if 'custom: Word Count' in selected_test_metrics:
|
351 |
metrics['word_count'] = word_count_metric # ← example of a simple custom-defined metric
|
352 |
|
353 |
if not metrics:
|
|
|
499 |
with gr.Column(scale=1):
|
500 |
test_metrics_selection = gr.CheckboxGroup(
|
501 |
label="🎯 Select Metrics for Testing",
|
502 |
+
choices=["BLEU", "ROUGE", "BERTScore", "custom: Word Count"],
|
503 |
value=["BLEU", "ROUGE", "BERTScore"],
|
504 |
interactive=True,
|
505 |
info="Only fast metrics are shown to ensure quick evaluation (slow ones are excluded)"
|