Spaces:
Build error
Build error
reshinthadith
commited on
Commit
•
95454f9
1
Parent(s):
e4ba819
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,6 @@ splits = ['Bible', 'EuroParliamentProceedings', 'TED2020', 'PileOfLaw', 'StackEx
|
|
7 |
st.sidebar.title('Pile v2 Explorer')
|
8 |
split = st.sidebar.selectbox('Select a split', splits)
|
9 |
st.sidebar.write('You selected:', split)
|
10 |
-
dataset = datasets.load_dataset('CarperAI/pile-v2-small-filtered', data_dir=split+"/data.json"
|
11 |
index = st.sidebar.slider('Select a row', 0, len(dataset['train'])-1, 0)
|
12 |
st.write(dataset['train'][index]['text'])
|
|
|
7 |
st.sidebar.title('Pile v2 Explorer')
|
8 |
split = st.sidebar.selectbox('Select a split', splits)
|
9 |
st.sidebar.write('You selected:', split)
|
10 |
+
dataset = datasets.load_dataset('CarperAI/pile-v2-small-filtered', data_dir=split+"/data.json")
|
11 |
index = st.sidebar.slider('Select a row', 0, len(dataset['train'])-1, 0)
|
12 |
st.write(dataset['train'][index]['text'])
|