Spaces:
Sleeping
Sleeping
fix hindi lora path
Browse files
app.py
CHANGED
@@ -11,10 +11,10 @@ class LLaMAScoreAnalyzer:
|
|
11 |
self.models = ["Baseline", "LoRA"]
|
12 |
self.scores_gpt = ["relevance_score", "cc_score", "syntax_score", "complete_score"]
|
13 |
self.rouge_bleu = ["rougeL", "bleu"]
|
14 |
-
self.categories = ["hallucination_type"
|
15 |
self.DATA_PATH = {
|
16 |
"Nepali": {"Baseline": "./data/nepali_baseline_all_scores.csv", "LoRA": "./data/nepali_lora_all_scores.csv"},
|
17 |
-
"Hindi": {"Baseline": "./data/hindi_baseline_all_scores.csv", "LoRA": "./data/
|
18 |
}
|
19 |
|
20 |
def load_samples(self, lang):
|
@@ -130,7 +130,7 @@ class LLaMAScoreAnalyzer:
|
|
130 |
st.sidebar.markdown("""
|
131 |
Show additional evaluation scores and categories below:
|
132 |
""")
|
133 |
-
additional_score_categories = st.sidebar.checkbox("Hallucination
|
134 |
if additional_score_categories:
|
135 |
additional_categories = st.sidebar.multiselect("Select Category", self.categories, default="hallucination_type")
|
136 |
for language in selected_languages:
|
|
|
11 |
self.models = ["Baseline", "LoRA"]
|
12 |
self.scores_gpt = ["relevance_score", "cc_score", "syntax_score", "complete_score"]
|
13 |
self.rouge_bleu = ["rougeL", "bleu"]
|
14 |
+
self.categories = ["hallucination_type"]
|
15 |
self.DATA_PATH = {
|
16 |
"Nepali": {"Baseline": "./data/nepali_baseline_all_scores.csv", "LoRA": "./data/nepali_lora_all_scores.csv"},
|
17 |
+
"Hindi": {"Baseline": "./data/hindi_baseline_all_scores.csv", "LoRA": "./data/hindi_lora_all_scores.csv"}
|
18 |
}
|
19 |
|
20 |
def load_samples(self, lang):
|
|
|
130 |
st.sidebar.markdown("""
|
131 |
Show additional evaluation scores and categories below:
|
132 |
""")
|
133 |
+
additional_score_categories = st.sidebar.checkbox("Hallucination Statistics", value=False)
|
134 |
if additional_score_categories:
|
135 |
additional_categories = st.sidebar.multiselect("Select Category", self.categories, default="hallucination_type")
|
136 |
for language in selected_languages:
|