AbdullahAj2000 commited on
Commit
54ce430
·
verified ·
1 Parent(s): f86f863

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -64,8 +64,8 @@ def show_preds_image(image_path,model_selection):
64
  conf = (classify_image(image_path,model_selection))
65
  html = f'<p>petra</p><a href="https://www.gradio.app/docs/examples" target="_blank">"https://www.gradio.app/docs/examples"</a>'
66
 
67
- map_l = location(mux_value)
68
- google_map =f'''
69
  <!DOCTYPE html>
70
  <html>
71
  <head>
@@ -73,12 +73,13 @@ def show_preds_image(image_path,model_selection):
73
  </head>
74
  <body>
75
  <h1>Map Display</h1>
76
- <iframe width="600" height="450" frameborder="0" style="border:0" src="{map_l}" allowfullscreen></iframe>
77
  </body>
78
  </html>
79
  '''
 
80
 
81
- return img,conf,html,google_map,map_l
82
 
83
 
84
  inputs_image = gr.Image(type="filepath", label="Input Image")
 
64
  conf = (classify_image(image_path,model_selection))
65
  html = f'<p>petra</p><a href="https://www.gradio.app/docs/examples" target="_blank">"https://www.gradio.app/docs/examples"</a>'
66
 
67
+ map_link = location(mux_value)
68
+ google_map = f'''
69
  <!DOCTYPE html>
70
  <html>
71
  <head>
 
73
  </head>
74
  <body>
75
  <h1>Map Display</h1>
76
+ <iframe width="600" height="450" frameborder="0" style="border:0" src="{map_link}" allowfullscreen></iframe>
77
  </body>
78
  </html>
79
  '''
80
+
81
 
82
+ return img,conf,html,google_map,map_link
83
 
84
 
85
  inputs_image = gr.Image(type="filepath", label="Input Image")