AbdullahAj2000 commited on
Commit
13be423
·
verified ·
1 Parent(s): 85ae713

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -9
app.py CHANGED
@@ -6,17 +6,17 @@ import gradio as gr
6
 
7
  def location(place):
8
  if place == "Ajloun Castle":
9
- map_link = "https://www.google.com/maps/place/Ajloun+Castle/@32.3252097,35.7274499,15z/data=!4m6!3m5!1s0x151c8888296393d7:0xad15bd4bdbfa4a2c!8m2!3d32.3252097!4d35.7274499!16zL20vMDhrZDN6?entry=ttu"
10
  elif place == "Jerash":
11
- map_link = "https://www.google.com/maps/place/The+Archaeological+Site+of+Jerash/@32.2756771,35.8898159,15.75z/data=!4m15!1m8!3m7!1s0x151c802ff49ac08d:0x876c24b1cbded302!2sJerash!3b1!8m2!3d32.2746515!4d35.8960765!16zL20vMDE5NTlk!3m5!1s0x151c8048588ecc75:0xc3bc8fe9ac19669e!8m2!3d32.2787781!4d35.8893265!16s%2Fg%2F1hc3jphgx?entry=ttu"
12
  elif place == "Petra":
13
- map_link = "https://www.google.com/maps/place/The+Treasury/@30.3200019,35.4665137,14.75z/data=!4m15!1m8!3m7!1s0x15016930021ab6b1:0xe43a697bc3a3e0b9!2sWadi+Musa!3b1!8m2!3d30.3216354!4d35.4801251!16s%2Fm%2F03nx74h!3m5!1s0x15016eeb79d3cf39:0xa40550ba81476059!8m2!3d30.3221392!4d35.4517457!16zL20vMGZuanlw?entry=ttu"
14
  elif place == "Roman amphitheater":
15
- map_link = "https://www.google.com/maps/place/Roman+Theater/@31.9517165,35.9368315,17z/data=!3m1!4b1!4m6!3m5!1s0x151ca07139c70a21:0xc5b2f8903093b109!8m2!3d31.9517165!4d35.9394064!16zL20vMGdwamY2?entry=ttu"
16
  elif place == "Umm Qais":
17
- map_link = "https://www.google.com/maps/place/Umm+Qays/@32.6625169,35.6698552,15z/data=!4m15!1m8!3m7!1s0x151c6d07287b7199:0x96d0d420e01bf0b1!2sUmm+Qais!3b1!8m2!3d32.6543534!4d35.6880516!16zL20vMDRfMnZq!3m5!1s0x151c6c5f1e3deb1b:0x73f5d4d2d68f09a4!8m2!3d32.6556353!4d35.6780218!16s%2Fg%2F1tcvlmk_?entry=ttu"
18
  elif place == "Wadi Rum":
19
- map_link = "https://www.google.com/maps/search/wadi+rum/@29.556416,35.3964418,14z/data=!3m1!4b1?entry=ttu"
20
 
21
  return map_link
22
 
@@ -74,12 +74,10 @@ def show_preds_image(image_path,model_selection):
74
  </head>
75
  <body>
76
  <h1>Map Display</h1>
77
- <iframe width="600" height="450" frameborder="0" style="border:0" src="https://earth.google.com/web/search/Petra/@30.32224764,35.45409352,999.70175561a,1177.61432884d,35y,359.99837392h,0t,0r/data=CmoaQBI6CiUweDE1MDE2ZWVhNGYxMGNjNmQ6MHg4NWMwM2JlYTZlMjZiMmJmKhFBbC1TaXEK2KfZhNiz2YrZghgCIAEiJgokCeZHwxPZD1JAEdonj1foDVJAGbz-_lNE0zfAIZo1iaUoBDjAOgMKATA" allowfullscreen></iframe>
78
  </body>
79
  </html>
80
  '''
81
-
82
-
83
 
84
  return img,conf,html,google_map,map_link
85
 
 
6
 
7
  def location(place):
8
  if place == "Ajloun Castle":
9
+ map_link = "https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d387195.9481044243!2d35.7274499!3d32.3252097!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x151c8888296393d7%3A0xad15bd4bdbfa4a2c!2sAjloun%20Castle!5e0!3m2!1sen!2sus!4v1645602498168!5m2!1sen!2sus"
10
  elif place == "Jerash":
11
+ map_link = "https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d403636.1090892695!2d35.8898159!3d32.2756771!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x151c802ff49ac08d%3A0x876c24b1cbded302!2sJerash!5e0!3m2!1sen!2sus!4v1645603957293!5m2!1sen!2sus"
12
  elif place == "Petra":
13
+ map_link = "https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d403636.1090892695!2d35.4665137!3d30.3200019!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x15016930021ab6b1%3A0xe43a697bc3a3e0b9!2sWadi+Musa!5e0!3m2!1sen!2sus!4v1645604690535!5m2!1sen!2sus"
14
  elif place == "Roman amphitheater":
15
+ map_link = "https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d403636.1090892695!2d35.9368315!3d31.9517165!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x151ca07139c70a21%3A0xc5b2f8903093b109!2sRoman+Theater!5e0!3m2!1sen!2sus!4v1645605382663!5m2!1sen!2sus"
16
  elif place == "Umm Qais":
17
+ map_link = "https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d403636.1090892695!2d35.6698552!3d32.6625169!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x151c6d07287b7199%3A0x96d0d420e01bf0b1!2sUmm+Qais!5e0!3m2!1sen!2sus!4v1645606064411!5m2!1sen!2sus"
18
  elif place == "Wadi Rum":
19
+ map_link = "https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d403636.1090892695!2d35.3964418!3d29.556416!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0:0x0!2sWadi+Rum!5e0!3m2!1sen!2sus!4v1645606782015!5m2!1sen!2sus"
20
 
21
  return map_link
22
 
 
74
  </head>
75
  <body>
76
  <h1>Map Display</h1>
77
+ <iframe width="600" height="450" frameborder="0" style="border:0" src="{map_link}" allowfullscreen></iframe>
78
  </body>
79
  </html>
80
  '''
 
 
81
 
82
  return img,conf,html,google_map,map_link
83