Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,6 @@
|
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
-
|
| 6 |
# import module
|
| 7 |
import streamlit as st
|
| 8 |
|
|
@@ -25,6 +24,10 @@ def load():
|
|
| 25 |
column_with_audio="audio_transcription"
|
| 26 |
column_with_english_text="en"
|
| 27 |
column_with_other_text="transcription"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
ds = datasets.load_dataset(dataset, token=access_token if access_token!="" else st.secrets["hf_token"], split=datasets.ReadInstruction("test",from_=skip,to=skip+50))
|
| 30 |
for example in ds:
|
|
|
|
| 2 |
|
| 3 |
|
| 4 |
|
|
|
|
| 5 |
# import module
|
| 6 |
import streamlit as st
|
| 7 |
|
|
|
|
| 24 |
column_with_audio="audio_transcription"
|
| 25 |
column_with_english_text="en"
|
| 26 |
column_with_other_text="transcription"
|
| 27 |
+
elif dataset=="nlewins/fleurs_ceb_to_en":
|
| 28 |
+
column_with_audio="audio"
|
| 29 |
+
column_with_english_text="transcription_en"
|
| 30 |
+
column_with_other_text="transcription"
|
| 31 |
|
| 32 |
ds = datasets.load_dataset(dataset, token=access_token if access_token!="" else st.secrets["hf_token"], split=datasets.ReadInstruction("test",from_=skip,to=skip+50))
|
| 33 |
for example in ds:
|