Seetha commited on
Commit
fbfd701
·
1 Parent(s): 8fefa85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -8
app.py CHANGED
@@ -1,10 +1,7 @@
1
- # from datasets import load_dataset
2
- # from datasets import load_dataset_builder
3
- # dataset = load_dataset_builder('Seetha/visual_cs')
4
 
5
- # print(dataset.info.features)
 
6
 
7
- from datasets import list_datasets
8
- datasets_list = list_datasets()
9
-
10
- print(', '.join(dataset for dataset in datasets_list))
 
1
+ from datasets import load_dataset
2
+ import streamlit as st
 
3
 
4
+ dataset = load_dataset("Seetha/visual_cs", streaming=True)
5
+ df = pd.DataFrame.from_dict(dataset["train"])
6
 
7
+ print(df)