GodfreyOwino commited on
Commit
58c7bce
1 Parent(s): 3716637

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -14,8 +14,8 @@ This model predicts the Nitrogen, Phosphorus, and Potassium needs for crops base
14
  from transformers import AutoConfig, AutoModel
15
 
16
  # Load the model
17
- config = AutoConfig.from_pretrained("GodfreyOwino/NPK_prediction_model1")
18
- model = AutoModel.from_config(config)
19
 
20
  input_data = {
21
  'crop_name': ['maize (corn)'],
 
14
  from transformers import AutoConfig, AutoModel
15
 
16
  # Load the model
17
+ config = AutoConfig.from_pretrained("GodfreyOwino/NPK_prediction_model2", trust_remote_code=True)
18
+ model = AutoModel.from_pretrained("GodfreyOwino/NPK_prediction_model2", config=config, trust_remote_code=True)
19
 
20
  input_data = {
21
  'crop_name': ['maize (corn)'],