arnavkundalia commited on
Commit
40ccb7c
·
1 Parent(s): 9628bd4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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
- gr.Interface(fn=predict_fn, inputs=gr.inputs.Image(type='pil'), outputs='label',interpretation='default',
27
- description = "Upload an image of an Apple and the model would predict if it is a healthy apple or scab apple.").launch(debug='True')
 
 
 
 
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')