gfathertech commited on
Commit
1c6c211
·
verified ·
1 Parent(s): 2c6a3dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -2,7 +2,10 @@ from datasets import load_dataset
2
  import gradio as gr
3
 
4
  def preview_data():
5
- dataset = load_dataset("gfather/publications")
 
 
 
6
  df = dataset["train"].to_pandas()
7
  return df.head().to_string()
8
 
 
2
  import gradio as gr
3
 
4
  def preview_data():
5
+ dataset = load_dataset(
6
+ "json",
7
+ data_files="https://huggingface.co/gfather/publications/resolve/main/publication_1.json"
8
+ )
9
  df = dataset["train"].to_pandas()
10
  return df.head().to_string()
11