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 |
|
@@ -26,7 +25,7 @@ def load():
|
|
26 |
column_with_english_text="en"
|
27 |
column_with_other_text="transcription"
|
28 |
|
29 |
-
ds = datasets.load_dataset(dataset, token=access_token if
|
30 |
for example in ds:
|
31 |
df=pd.DataFrame([example[column_with_other_text],example[column_with_english_text]])
|
32 |
st.table(df.values)
|
|
|
2 |
|
3 |
|
4 |
|
|
|
5 |
# import module
|
6 |
import streamlit as st
|
7 |
|
|
|
25 |
column_with_english_text="en"
|
26 |
column_with_other_text="transcription"
|
27 |
|
28 |
+
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))
|
29 |
for example in ds:
|
30 |
df=pd.DataFrame([example[column_with_other_text],example[column_with_english_text]])
|
31 |
st.table(df.values)
|