Skip to content

Commit

Permalink
Image Flower notebook fix (#2901)
Browse files Browse the repository at this point in the history
* flower nbk fix

* var fix

* var fix
  • Loading branch information
Advitya17 authored Dec 11, 2023
1 parent cb13edb commit 562a45b
Showing 1 changed file with 15 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
},
"outputs": [],
"source": [
"rai_example_version_string = \"3\""
"rai_example_version_string = \"4\""
]
},
{
Expand Down Expand Up @@ -338,15 +338,21 @@
"\n",
"input_test_data_folder = \"image-classification-flowers-new\"\n",
"\n",
"my_data = Data(\n",
" path=dataset_dir,\n",
" type=AssetTypes.URI_FOLDER,\n",
" description=\"Images of Flowers image classification\",\n",
" name=input_test_data_folder,\n",
" version=rai_example_version_string,\n",
")\n",
"try:\n",
" uri_folder_data_asset = ml_client.data.get(\n",
" name=input_test_data_folder,\n",
" version=rai_example_version_string,\n",
" )\n",
"except Exception:\n",
" my_data = Data(\n",
" path=dataset_dir,\n",
" type=AssetTypes.URI_FOLDER,\n",
" description=\"Images of Flowers image classification\",\n",
" name=input_test_data_folder,\n",
" version=rai_example_version_string,\n",
" )\n",
"\n",
"uri_folder_data_asset = ml_client.data.create_or_update(my_data)\n",
" uri_folder_data_asset = ml_client.data.create_or_update(my_data)\n",
"\n",
"print(uri_folder_data_asset)\n",
"print(\"\")\n",
Expand Down

0 comments on commit 562a45b

Please sign in to comment.