okeowo1014 commited on
Commit
4fac414
1 Parent(s): 1961dc6

Update train.py

Browse files
Files changed (1) hide show
  1. train.py +2 -2
train.py CHANGED
@@ -106,13 +106,13 @@ model.summary()
106
  # token=sac,
107
  # )
108
  # Save the model with a valid extension (recommended: .h5)
109
- model.save('cat_dog_classifierss.h5','',save_format='tf',)
110
  # tf.keras.models.save_model(model, 'cat_dog_classifierss.keras')
111
  # Authenticate with Hugging Face (replace YOUR_TOKEN with your actual token)
112
  # from huggingface_hub import hf_hub_auth
113
  # hf_hub_auth(token=sac)
114
  # Recreate the exact same model purely from the file
115
- new_model = keras.models.load_model('path_to_my_model')
116
  # Push the model to Hugging Face Hub with a descriptive name
117
  model_repo = push_to_hub_keras(new_model, repo_id="okeowo1014/kerascatanddog",token=sac) # Optional organization
118
 
 
106
  # token=sac,
107
  # )
108
  # Save the model with a valid extension (recommended: .h5)
109
+ model.save('cat_dog_classifierss.keras','',save_format='tf',)
110
  # tf.keras.models.save_model(model, 'cat_dog_classifierss.keras')
111
  # Authenticate with Hugging Face (replace YOUR_TOKEN with your actual token)
112
  # from huggingface_hub import hf_hub_auth
113
  # hf_hub_auth(token=sac)
114
  # Recreate the exact same model purely from the file
115
+ new_model = keras.models.load_model('cat_dog_classifierss.keras')
116
  # Push the model to Hugging Face Hub with a descriptive name
117
  model_repo = push_to_hub_keras(new_model, repo_id="okeowo1014/kerascatanddog",token=sac) # Optional organization
118