Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,6 @@ def load_model(model_path):
|
|
50 |
model.load_state_dict(new_state_dict, strict=False)
|
51 |
model.eval()
|
52 |
return model
|
53 |
-
|
54 |
except Exception as e:
|
55 |
logging.error(f"Failed to load model: {e}")
|
56 |
raise
|
@@ -104,7 +103,7 @@ demo = gr.Interface(
|
|
104 |
fn=predict_from_image_url,
|
105 |
inputs="text",
|
106 |
outputs="json",
|
107 |
-
title="
|
108 |
description="Enter a URL to an image for classification (Fall Army Worm, Phosphorus Deficiency, or Bacterial Leaf Blight).",
|
109 |
)
|
110 |
|
|
|
50 |
model.load_state_dict(new_state_dict, strict=False)
|
51 |
model.eval()
|
52 |
return model
|
|
|
53 |
except Exception as e:
|
54 |
logging.error(f"Failed to load model: {e}")
|
55 |
raise
|
|
|
103 |
fn=predict_from_image_url,
|
104 |
inputs="text",
|
105 |
outputs="json",
|
106 |
+
title="Maize Disease Classification",
|
107 |
description="Enter a URL to an image for classification (Fall Army Worm, Phosphorus Deficiency, or Bacterial Leaf Blight).",
|
108 |
)
|
109 |
|