Spaces:
Build error
Build error
Update app.py
Browse files
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/
|
| 10 |
elif place == "Jerash":
|
| 11 |
-
map_link = "https://www.google.com/maps/
|
| 12 |
elif place == "Petra":
|
| 13 |
-
map_link = "https://www.google.com/maps/
|
| 14 |
elif place == "Roman amphitheater":
|
| 15 |
-
map_link = "https://www.google.com/maps/
|
| 16 |
elif place == "Umm Qais":
|
| 17 |
-
map_link = "https://www.google.com/maps/
|
| 18 |
elif place == "Wadi Rum":
|
| 19 |
-
map_link = "https://www.google.com/maps/
|
| 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="
|
| 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 |
|