Upload app/pages.py with huggingface_hub
Browse files- app/pages.py +27 -1
app/pages.py
CHANGED
@@ -117,7 +117,6 @@ def dashboard():
|
|
117 |
year={2024}
|
118 |
}
|
119 |
```
|
120 |
-
|
121 |
""")
|
122 |
|
123 |
|
@@ -198,6 +197,7 @@ def asr_malay():
|
|
198 |
sum_table_mulit_metrix('asr_malay', ['wer'])
|
199 |
else:
|
200 |
dataset_contents(dataset_diaplay_information[filter_1], metrics_info['wer'])
|
|
|
201 |
draw('su', 'asr_malay', filter_1, 'wer')
|
202 |
|
203 |
|
@@ -573,3 +573,29 @@ def under_development():
|
|
573 |
|
574 |
elif filter_1 in non_wer_development_datasets:
|
575 |
draw('vu', 'under_development_llama3_70b_judge', filter_1, 'llama3_70b_judge')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
year={2024}
|
118 |
}
|
119 |
```
|
|
|
120 |
""")
|
121 |
|
122 |
|
|
|
197 |
sum_table_mulit_metrix('asr_malay', ['wer'])
|
198 |
else:
|
199 |
dataset_contents(dataset_diaplay_information[filter_1], metrics_info['wer'])
|
200 |
+
show_examples(filter_1)
|
201 |
draw('su', 'asr_malay', filter_1, 'wer')
|
202 |
|
203 |
|
|
|
573 |
|
574 |
elif filter_1 in non_wer_development_datasets:
|
575 |
draw('vu', 'under_development_llama3_70b_judge', filter_1, 'llama3_70b_judge')
|
576 |
+
|
577 |
+
|
578 |
+
|
579 |
+
def show_examples(data):
|
580 |
+
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
581 |
+
'''
|
582 |
+
Show Dataset Examples
|
583 |
+
'''
|
584 |
+
|
585 |
+
# Initialize a session state variable for toggling the chart visibility
|
586 |
+
if "show_dataset_examples" not in st.session_state:
|
587 |
+
st.session_state.show_dataset_examples = False
|
588 |
+
|
589 |
+
# Create a button to toggle visibility
|
590 |
+
if st.button("Show Dataset Examples"):
|
591 |
+
st.session_state.show_dataset_examples = not st.session_state.show_dataset_examples
|
592 |
+
|
593 |
+
if st.session_state.show_dataset_examples:
|
594 |
+
|
595 |
+
|
596 |
+
try:
|
597 |
+
show_dataset_examples(data)
|
598 |
+
except:
|
599 |
+
st.markdown('To be implemented')
|
600 |
+
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
601 |
+
|