Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def process_image(i):
|
|
23 |
|
24 |
def create_fiftyone_sample(sample):
|
25 |
origin_label = fo.Classification(label=str(sample["origin"]))
|
26 |
-
english_label = fo.Classification(label=str(sample["
|
27 |
return fo.Sample(
|
28 |
filepath=sample["file_path"],
|
29 |
labels=fo.Classifications(classifications=[origin_label, english_label]),
|
|
|
23 |
|
24 |
def create_fiftyone_sample(sample):
|
25 |
origin_label = fo.Classification(label=str(sample["origin"]))
|
26 |
+
english_label = fo.Classification(label=str(sample["labels"]))
|
27 |
return fo.Sample(
|
28 |
filepath=sample["file_path"],
|
29 |
labels=fo.Classifications(classifications=[origin_label, english_label]),
|