" print(f'Zip file not found: {zip_file_path}')\n",
"\n",
" # Load the model in SavedModel format\n",
- " model_path = \"./Model/1\" # Path to the directory containing the saved model\n",
+ " # Path to the directory containing the saved model\n",
+ " if artifactversion ==\"1.0.0\":\n",
+ " model_path = \"./Model/1\"\n",
+ " else:\n",
+ " model_path= \"./Model/1/retrain\"\n",
+ " \n",
" model = tf.keras.models.load_model(model_path)\n",
" model.compile(loss='mse', optimizer='adam', metrics=['mse'])\n",
" model.summary()\n",