Update README.md
Browse files
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/
|
| 18 |
-
model = AutoModel.
|
| 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)'],
|