AbdullahAj2000 commited on
Commit
7b4839f
·
1 Parent(s): d179488

upload model

Browse files
Files changed (2) hide show
  1. app.py +3 -1
  2. models/last_inceptionV3.onnx +3 -0
app.py CHANGED
@@ -69,6 +69,8 @@ def open_model(model_selection):
69
  return './models/ResNet50_32_onnx.onnx'
70
  elif model_selection == "Efficientnet":
71
  return './models/efficientnet_32_onnx.onnx'
 
 
72
 
73
  def classify_image(input_image,model_selection):
74
  img_array = load_image_with_cv2(input_image)
@@ -131,7 +133,7 @@ def show_preds_image(image_path,model_selection):
131
  return img,conf,informations,link_info,google_map
132
 
133
  inputs_image = gr.Image(type="filepath", label="Input Image")
134
- model_selection = gr.Dropdown(["VGG19","ResNet50","Efficientnet"],label="Model selection")
135
 
136
  outputs_image = gr.Image(type="numpy", label="Output Image")
137
  output_text = gr.Textbox(label="prediction & confidence")
 
69
  return './models/ResNet50_32_onnx.onnx'
70
  elif model_selection == "Efficientnet":
71
  return './models/efficientnet_32_onnx.onnx'
72
+ elif model_selection == "InceptionV3":
73
+ return './models/last_inceptionV3.onnx'
74
 
75
  def classify_image(input_image,model_selection):
76
  img_array = load_image_with_cv2(input_image)
 
133
  return img,conf,informations,link_info,google_map
134
 
135
  inputs_image = gr.Image(type="filepath", label="Input Image")
136
+ model_selection = gr.Dropdown(["VGG19","InceptionV3","ResNet50","Efficientnet"],label="Model selection")
137
 
138
  outputs_image = gr.Image(type="numpy", label="Output Image")
139
  output_text = gr.Textbox(label="prediction & confidence")
models/last_inceptionV3.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1a967b84ae2493d5854a39145ec363afaee8ea2c5acd77866549347d24b2f83
3
+ size 98155464