demo / app.py
ahmedmu's picture
Create app.py
7100603 verified
raw
history blame contribute delete
293 Bytes
!pip install datasets matplotlib
from datasets import load_dataset
import matplotlib.pyplot as plt
dataset = load_dataset("saberzl/SID_Set", split="train[:10]")
print(dataset)
sample = dataset[0]
plt.imshow(sample["image"])
plt.title(f"Label: {sample['label']}")
plt.axis("off")
plt.show()