Spaces:
Sleeping
Sleeping
no message
Browse files- app.py +3 -14
- hf_bulk_image_classifier.code-workspace +0 -20
app.py
CHANGED
@@ -10,7 +10,7 @@ MODELS = [
|
|
10 |
]
|
11 |
DATASETS = [
|
12 |
"Nunt/testedata",
|
13 |
-
"Nunt/
|
14 |
]
|
15 |
MAX_N_LABELS = 5
|
16 |
SPLIT_TO_CLASSIFY = 'pasta'
|
@@ -39,19 +39,7 @@ def classify_full_dataset(shosen_dataset_name, chosen_model_name):
|
|
39 |
image_count += 1
|
40 |
SCROLLABLE_TEXT.write(f"Image count" + str(image_count))
|
41 |
#SCROLLABLE_TEXT.write(image_count)
|
42 |
-
|
43 |
|
44 |
-
#Image teste load
|
45 |
-
#image_object = dataset['pasta'][0]["image"]
|
46 |
-
#SCROLLABLE_TEXT.image(image_object, caption="Uploaded Image", width=300)
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
|
56 |
|
57 |
def main():
|
@@ -81,7 +69,8 @@ def main():
|
|
81 |
|
82 |
classify_full_dataset(shosen_dataset_name, chosen_model_name)
|
83 |
COLS[0].write("Classification result {classification_result}")
|
84 |
-
COLS[0].write(
|
|
|
85 |
|
86 |
|
87 |
if __name__ == "__main__":
|
|
|
10 |
]
|
11 |
DATASETS = [
|
12 |
"Nunt/testedata",
|
13 |
+
"Nunt/backup_leonardo"
|
14 |
]
|
15 |
MAX_N_LABELS = 5
|
16 |
SPLIT_TO_CLASSIFY = 'pasta'
|
|
|
39 |
image_count += 1
|
40 |
SCROLLABLE_TEXT.write(f"Image count" + str(image_count))
|
41 |
#SCROLLABLE_TEXT.write(image_count)
|
|
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
|
45 |
def main():
|
|
|
69 |
|
70 |
classify_full_dataset(shosen_dataset_name, chosen_model_name)
|
71 |
COLS[0].write("Classification result {classification_result}")
|
72 |
+
COLS[0].write("--- END ---")
|
73 |
+
#COLS[0].write(classification_result)
|
74 |
|
75 |
|
76 |
if __name__ == "__main__":
|
hf_bulk_image_classifier.code-workspace
CHANGED
@@ -5,25 +5,5 @@
|
|
5 |
}
|
6 |
],
|
7 |
"settings": {
|
8 |
-
"workbench.colorCustomizations": {
|
9 |
-
"activityBar.activeBackground": "#fa1b49",
|
10 |
-
"activityBar.background": "#fa1b49",
|
11 |
-
"activityBar.foreground": "#e7e7e7",
|
12 |
-
"activityBar.inactiveForeground": "#e7e7e799",
|
13 |
-
"activityBarBadge.background": "#155e02",
|
14 |
-
"activityBarBadge.foreground": "#e7e7e7",
|
15 |
-
"commandCenter.border": "#e7e7e799",
|
16 |
-
"sash.hoverBorder": "#fa1b49",
|
17 |
-
"statusBar.background": "#dd0531",
|
18 |
-
"statusBar.foreground": "#e7e7e7",
|
19 |
-
"statusBarItem.hoverBackground": "#fa1b49",
|
20 |
-
"statusBarItem.remoteBackground": "#dd0531",
|
21 |
-
"statusBarItem.remoteForeground": "#e7e7e7",
|
22 |
-
"titleBar.activeBackground": "#dd0531",
|
23 |
-
"titleBar.activeForeground": "#e7e7e7",
|
24 |
-
"titleBar.inactiveBackground": "#dd053199",
|
25 |
-
"titleBar.inactiveForeground": "#e7e7e799"
|
26 |
-
},
|
27 |
-
"peacock.color": "#dd0531"
|
28 |
}
|
29 |
}
|
|
|
5 |
}
|
6 |
],
|
7 |
"settings": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
}
|
9 |
}
|