Spaces:
Runtime error
Runtime error
Commit
·
40ccb7c
1
Parent(s):
9628bd4
Update app.py
Browse files
app.py
CHANGED
@@ -23,5 +23,8 @@ def predict_fn(img):
|
|
23 |
|
24 |
return {labels[i]: v.item() for i, v in zip(indices, values)}
|
25 |
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
|
23 |
|
24 |
return {labels[i]: v.item() for i, v in zip(indices, values)}
|
25 |
|
26 |
+
description = "Upload an image of an Apple and the model would predict if it is a healthy apple or scab apple."
|
27 |
+
title = "Apple scab detection"
|
28 |
+
gr.Interface(fn=predict_fn, inputs=gr.inputs.Image(type='pil'), outputs='label',description=description,
|
29 |
+
title=title, allow_flagging='never'
|
30 |
+
).launch(debug='True')
|