niki-stha commited on
Commit
95817ca
·
1 Parent(s): 0de6ba4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -106,10 +106,14 @@ model.load_state_dict(torch.load('best_model_nikita.pt', map_location=device))
106
  # 4. Set model to evaluation mode
107
  model.eval()
108
 
 
 
109
 
110
  demo = gr.Interface(fn = predict,
111
  inputs=gr.inputs.Image(type="pil"),
112
  outputs=[gr.outputs.Label(num_top_classes=1), gr.outputs.Label(num_top_classes=3)], # selec
 
 
113
  )
114
 
115
  demo.launch(debug=True)
 
106
  # 4. Set model to evaluation mode
107
  model.eval()
108
 
109
+ title = "BaMI Classifier"
110
+ description = "A plant based classifier to classify the particular species of Mushroom and Berries, along with it's edibality"
111
 
112
  demo = gr.Interface(fn = predict,
113
  inputs=gr.inputs.Image(type="pil"),
114
  outputs=[gr.outputs.Label(num_top_classes=1), gr.outputs.Label(num_top_classes=3)], # selec
115
+ examples=['image3.jpg', 'image9.jpg', 'image12.jpg'],
116
+ title=title,description=description
117
  )
118
 
119
  demo.launch(debug=True)