Upload app/pages.py with huggingface_hub
Browse files- app/pages.py +9 -11
app/pages.py
CHANGED
@@ -197,7 +197,7 @@ def asr_malay():
|
|
197 |
sum_table_mulit_metrix('asr_malay', ['wer'])
|
198 |
else:
|
199 |
dataset_contents(dataset_diaplay_information[filter_1], metrics_info['wer'])
|
200 |
-
show_examples(
|
201 |
draw('su', 'asr_malay', filter_1, 'wer')
|
202 |
|
203 |
|
@@ -586,16 +586,14 @@ def show_examples(data):
|
|
586 |
if "show_dataset_examples" not in st.session_state:
|
587 |
st.session_state.show_dataset_examples = False
|
588 |
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
except:
|
599 |
-
st.markdown('To be implemented')
|
600 |
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
601 |
|
|
|
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 |
|
|
|
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 |
+
try:
|
595 |
+
show_dataset_examples(data)
|
596 |
+
except:
|
597 |
+
st.markdown('To be implemented')
|
|
|
|
|
598 |
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
599 |
|