AbdullahAj2000 commited on
Commit
edfaab4
·
verified ·
1 Parent(s): f6250e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -77,7 +77,7 @@ def show_preds_image(image_path,model_selection):
77
  html = f'<p>petra</p><a href="https://www.gradio.app/docs/examples" target="_blank">"https://www.gradio.app/docs/examples"</a>'
78
 
79
  google_map = location(mux_value)
80
- return img,conf,html,google_map
81
 
82
 
83
  inputs_image = gr.Image(type="filepath", label="Input Image")
@@ -87,11 +87,12 @@ outputs_image = gr.Image(type="numpy", label="Output Image")
87
  output_text = gr.Textbox()
88
  link = gr.HTML()
89
  g_map = gr.HTML()
 
90
 
91
  interface_image = gr.Interface(
92
  fn=show_preds_image,
93
  inputs=[inputs_image,model_selection],
94
- outputs=[outputs_image,output_text,link,g_map],
95
  title="image classification",
96
  )
97
 
 
77
  html = f'<p>petra</p><a href="https://www.gradio.app/docs/examples" target="_blank">"https://www.gradio.app/docs/examples"</a>'
78
 
79
  google_map = location(mux_value)
80
+ return img,conf,html,google_map,mux_value
81
 
82
 
83
  inputs_image = gr.Image(type="filepath", label="Input Image")
 
87
  output_text = gr.Textbox()
88
  link = gr.HTML()
89
  g_map = gr.HTML()
90
+ rub = gr.Textbox()
91
 
92
  interface_image = gr.Interface(
93
  fn=show_preds_image,
94
  inputs=[inputs_image,model_selection],
95
+ outputs=[outputs_image,output_text,link,g_map,rub],
96
  title="image classification",
97
  )
98