Spaces:
Runtime error
Runtime error
Deploy hyper3labs/HyperView from Hyper3Labs/hyperview-spaces@f672a3d
Browse files
demo.py
CHANGED
|
@@ -12,7 +12,6 @@ from datasets import load_dataset
|
|
| 12 |
from PIL import Image, ImageOps
|
| 13 |
|
| 14 |
import hyperview as hv
|
| 15 |
-
from hyperview.core.sample import Sample
|
| 16 |
|
| 17 |
SPACE_HOST = "0.0.0.0"
|
| 18 |
SPACE_PORT = 7860
|
|
@@ -156,7 +155,7 @@ def add_inat24_samples(dataset: hv.Dataset) -> None:
|
|
| 156 |
metadata["sample_strategy"] = "stratified_by_inat24_supercategory"
|
| 157 |
|
| 158 |
dataset.add_sample(
|
| 159 |
-
Sample(
|
| 160 |
id=sample_id,
|
| 161 |
filepath=str(image_path),
|
| 162 |
label=group,
|
|
|
|
| 12 |
from PIL import Image, ImageOps
|
| 13 |
|
| 14 |
import hyperview as hv
|
|
|
|
| 15 |
|
| 16 |
SPACE_HOST = "0.0.0.0"
|
| 17 |
SPACE_PORT = 7860
|
|
|
|
| 155 |
metadata["sample_strategy"] = "stratified_by_inat24_supercategory"
|
| 156 |
|
| 157 |
dataset.add_sample(
|
| 158 |
+
hv.Sample(
|
| 159 |
id=sample_id,
|
| 160 |
filepath=str(image_path),
|
| 161 |
label=group,
|