JaaackXD commited on
Commit
e462381
1 Parent(s): afa24f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -63,8 +63,8 @@ def inference(input_image):
63
  result[model_categories[top1_catid[i]]] = top1_prob[i].item()
64
  return result
65
 
66
- inputs = gr.inputs.Image(type='pil')
67
- outputs = gr.outputs.Label(type="confidences", num_top_classes = n_categories)
68
 
69
  title = "STAT 430 Final Project App -- Made by Group DHZ"
70
  description = "This is our Cat & Dog Classifier for the final project, and the model we use is generated by our second neural network augmented by the flipping technique, which is would give the best accuracy. To use it, simply upload your image, or click one of the examples to load them. The authors are Xiongjie Dai (xdai12), Yu He (yuhe6), Mengjia Zeng (mengjia6)."
 
63
  result[model_categories[top1_catid[i]]] = top1_prob[i].item()
64
  return result
65
 
66
+ inputs = gr.Image(type='pil')
67
+ outputs = gr.Label(type="confidences", num_top_classes=n_categories)
68
 
69
  title = "STAT 430 Final Project App -- Made by Group DHZ"
70
  description = "This is our Cat & Dog Classifier for the final project, and the model we use is generated by our second neural network augmented by the flipping technique, which is would give the best accuracy. To use it, simply upload your image, or click one of the examples to load them. The authors are Xiongjie Dai (xdai12), Yu He (yuhe6), Mengjia Zeng (mengjia6)."