kamangir commited on
Commit ·
39fed10
1
Parent(s): 00d97d7
validating single image predict for fashion_mnist - kamangir/bolt#692
Browse files
abcli/image_classifier.sh
CHANGED
|
@@ -86,7 +86,7 @@ function abcli_image_classifier_predict() {
|
|
| 86 |
local model_path=$(abcli_huggingface get_model_path image-classifier "$model_name" "$options")
|
| 87 |
|
| 88 |
if [ "$model_source" == "object" ] ; then
|
| 89 |
-
local model_object=
|
| 90 |
abcli_download object $model_object
|
| 91 |
fi
|
| 92 |
|
|
|
|
| 86 |
local model_path=$(abcli_huggingface get_model_path image-classifier "$model_name" "$options")
|
| 87 |
|
| 88 |
if [ "$model_source" == "object" ] ; then
|
| 89 |
+
local model_object=$(python3 -c "print('$model_source'.split('/')[-1])")
|
| 90 |
abcli_download object $model_object
|
| 91 |
fi
|
| 92 |
|
image_classifier/__init__.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
name = "image_classifier"
|
| 2 |
|
| 3 |
-
version = "1.1.
|
| 4 |
|
| 5 |
description = "fashion-mnist + hugging-face + awesome-bash-cli"
|
|
|
|
| 1 |
name = "image_classifier"
|
| 2 |
|
| 3 |
+
version = "1.1.163"
|
| 4 |
|
| 5 |
description = "fashion-mnist + hugging-face + awesome-bash-cli"
|