changes_v0.1
Browse files
app.py
CHANGED
@@ -15,11 +15,18 @@ def predict(img):
|
|
15 |
pred,pred_idx,probs = learn.predict(img)
|
16 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
17 |
|
18 |
-
title = "Classification of Diseases in Maize"
|
19 |
-
description = "
|
20 |
-
article="Four Classes"
|
21 |
-
examples =['corn.jpg']
|
22 |
-
interpretation='default'
|
23 |
-
enable_queue=True
|
24 |
|
25 |
-
gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(512, 512)),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
pred,pred_idx,probs = learn.predict(img)
|
16 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
17 |
|
18 |
+
title = "Classification of Diseases in Maize (AI)"
|
19 |
+
description = "This is a Machine Learning Model trained in Kaggle datasets with fastAI, created as a web App using Gradio and hosted on HuggingFace Spaces."
|
20 |
+
article = "Four Classes"
|
21 |
+
examples = ['corn.jpg']
|
22 |
+
interpretation = 'default'
|
23 |
+
enable_queue = True
|
24 |
|
25 |
+
gr.Interface(fn = predict, inputs = gr.inputs.Image(shape = (512, 512)),
|
26 |
+
outputs = gr.outputs.Label(num_top_classes = 3),
|
27 |
+
title = title,
|
28 |
+
description = description,
|
29 |
+
article = article,
|
30 |
+
examples = examples,
|
31 |
+
interpretation = interpretation,
|
32 |
+
enable_queue = enable_queue).launch()
|