merve HF Staff commited on
Commit
4657400
·
1 Parent(s): ba3d500

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ def load_data(dataset_name):
9
 
10
 
11
  dataset = load_dataset("fake_news_english")
12
- df = pd.DataFrame.from_dict(dataset)
13
  st.write("loading dataset")
14
  st.dataframe(df)
15
  st.write("loaded")
 
9
 
10
 
11
  dataset = load_dataset("fake_news_english")
12
+ df = pd.DataFrame.from_records(dataset)
13
  st.write("loading dataset")
14
  st.dataframe(df)
15
  st.write("loaded")