Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,8 +2,10 @@ import gradio as gr
|
|
| 2 |
import pandas as pd
|
| 3 |
import joblib
|
| 4 |
|
| 5 |
-
|
| 6 |
-
|
|
|
|
|
|
|
| 7 |
|
| 8 |
# Full fertilizer_details dictionary
|
| 9 |
fertilizer_details = {
|
|
|
|
| 2 |
import pandas as pd
|
| 3 |
import joblib
|
| 4 |
|
| 5 |
+
import cloudpickle
|
| 6 |
+
|
| 7 |
+
with open("log_reg_model.pkl", "wb") as f:
|
| 8 |
+
cloudpickle.dump(model, f)
|
| 9 |
|
| 10 |
# Full fertilizer_details dictionary
|
| 11 |
fertilizer_details = {
|