Spaces:
Sleeping
Sleeping
File size: 392 Bytes
2c6a3dc 1c6c211 2c6a3dc |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
from datasets import load_dataset
import gradio as gr
def preview_data():
dataset = load_dataset(
"json",
data_files="https://huggingface.co/gfather/publications/resolve/main/publication_1.json"
)
df = dataset["train"].to_pandas()
return df.head().to_string()
iface = gr.Interface(fn=preview_data, inputs=None, outputs="text", title="Dataset Preview")
iface.launch() |