AbdullahAj2000 commited on
Commit
4886186
·
verified ·
1 Parent(s): 735b004

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -16
app.py CHANGED
@@ -94,21 +94,9 @@ def show_preds_image(image_path,model_selection):
94
  </body>
95
  </html>
96
  '''
97
- img_link = "https://www.gettyimages.ae/photos/petra-jordan"
98
- imagess=f''' <!DOCTYPE html>
99
- <html>
100
- <head>
101
- <title>More images</title>
102
- </head>
103
- <body>
104
- <h1>More images</h1>
105
- <iframe width="600" height="450" frameborder="0" style="border:0" src="{img_link}" allowfullscreen></iframe>
106
- </body>
107
- </html>
108
- '''
109
- return img,conf,informations,imagess,google_map
110
 
111
-
 
112
  inputs_image = gr.Image(type="filepath", label="Input Image")
113
  model_selection = gr.Dropdown(["VGG19","ResNet50","Efficientnet"])
114
 
@@ -116,12 +104,12 @@ outputs_image = gr.Image(type="numpy", label="Output Image")
116
  output_text = gr.Textbox()
117
  inform = gr.Textbox()
118
  g_map = gr.HTML()
119
- imgess= gr.HTML()
120
 
121
  interface_image = gr.Interface(
122
  fn=show_preds_image,
123
  inputs=[inputs_image,model_selection],
124
- outputs=[outputs_image,output_text,inform,imgess,g_map],
125
  title="image classification",
126
  )
127
 
 
94
  </body>
95
  </html>
96
  '''
 
 
 
 
 
 
 
 
 
 
 
 
 
97
 
98
+ return img,conf,informations,google_map
99
+
100
  inputs_image = gr.Image(type="filepath", label="Input Image")
101
  model_selection = gr.Dropdown(["VGG19","ResNet50","Efficientnet"])
102
 
 
104
  output_text = gr.Textbox()
105
  inform = gr.Textbox()
106
  g_map = gr.HTML()
107
+
108
 
109
  interface_image = gr.Interface(
110
  fn=show_preds_image,
111
  inputs=[inputs_image,model_selection],
112
+ outputs=[outputs_image,output_text,inform,g_map],
113
  title="image classification",
114
  )
115