Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,15 +40,15 @@ def links_info(place):
|
|
| 40 |
if place == "Ajloun Castle":
|
| 41 |
link = ["https://www.tripadvisor.com/RestaurantsNear-g293988-d1549575-Ajloun_Castle-Jerash_Jerash_Governorate.html","https://www.booking.com/hotel/jo/al-jabal-castle-ajloun.html","https://www.gettyimages.ae/photos/ajloun-castle?assettype=image&sort=mostpopular&phrase=Ajloun%20Castle&license=rf%2Crm"]
|
| 42 |
elif place == "Jerash":
|
| 43 |
-
link = "https://www.
|
| 44 |
elif place == "Petra":
|
| 45 |
-
link = "https://www.
|
| 46 |
elif place == "Roman amphitheater":
|
| 47 |
-
link = "https://www.
|
| 48 |
elif place == "Umm Qais":
|
| 49 |
-
link = "https://www.
|
| 50 |
elif place == "Wadi Rum":
|
| 51 |
-
link = "https://www.
|
| 52 |
|
| 53 |
return link
|
| 54 |
|
|
@@ -111,7 +111,7 @@ def show_preds_image(image_path,model_selection):
|
|
| 111 |
</html>
|
| 112 |
'''
|
| 113 |
|
| 114 |
-
link_info= f'''
|
| 115 |
<!DOCTYPE html>
|
| 116 |
<html>
|
| 117 |
<head>
|
|
@@ -121,9 +121,9 @@ def show_preds_image(image_path,model_selection):
|
|
| 121 |
<h1>Useful Links</h1>
|
| 122 |
|
| 123 |
<ul>
|
| 124 |
-
<li><a href="{links[0]}" target="_blank">{links[0]}</a></li>
|
| 125 |
-
<li><a href="{links[1]}" target="_blank">{links[1]}</a></li>
|
| 126 |
-
<li><a href="{links[2]}" target="_blank">{links[2]}</a></li>
|
| 127 |
</ul>
|
| 128 |
</body>
|
| 129 |
</html>
|
|
|
|
| 40 |
if place == "Ajloun Castle":
|
| 41 |
link = ["https://www.tripadvisor.com/RestaurantsNear-g293988-d1549575-Ajloun_Castle-Jerash_Jerash_Governorate.html","https://www.booking.com/hotel/jo/al-jabal-castle-ajloun.html","https://www.gettyimages.ae/photos/ajloun-castle?assettype=image&sort=mostpopular&phrase=Ajloun%20Castle&license=rf%2Crm"]
|
| 42 |
elif place == "Jerash":
|
| 43 |
+
link = ["https://www.tripadvisor.com/Restaurants-g293988-Jerash_Jerash_Governorate.html","https://www.booking.com/city/jo/jarash.html","https://www.gettyimages.ae/photos/jerash?assettype=image&phrase=Jerash&sort=mostpopular&license=rf%2Crm"]
|
| 44 |
elif place == "Petra":
|
| 45 |
+
link = ["https://www.tripadvisor.com/Restaurants-g318895-Petra_Wadi_Musa_Ma_an_Governorate.html","https://www.booking.com/region/jo/petra.html","https://www.gettyimages.ae/photos/petra?assettype=image&phrase=Petra&sort=mostpopular&license=rf%2Crm"]
|
| 46 |
elif place == "Roman amphitheater":
|
| 47 |
+
link = ["https://www.tripadvisor.com/RestaurantsNear-g293986-d319450-Roman_Theatre-Amman_Amman_Governorate.html","https://www.tripadvisor.com/HotelsNear-g293986-d319450-Roman_Theatre-Amman_Amman_Governorate.html","https://www.gettyimages.ae/photos/roman-amphitheater-amman?assettype=image&phrase=Roman%20amphitheater%20Amman&sort=mostpopular&license=rf%2Crm"]
|
| 48 |
elif place == "Umm Qais":
|
| 49 |
+
link = ["https://www.tripadvisor.com/Restaurants-g318874-Umm_Qais_Irbid_Governorate.html","https://www.booking.com/city/jo/umm-qays.html","https://www.gettyimages.ae/photos/umm-qais?assettype=image&phrase=Umm%20Qais&sort=mostpopular&license=rf%2Crm"]
|
| 50 |
elif place == "Wadi Rum":
|
| 51 |
+
link = ["https://www.tripadvisor.com/Restaurants-g303973-Wadi_Rum_Al_Aqabah_Governorate.html","https://www.booking.com/city/jo/wadi-rum.html","https://www.gettyimages.ae/photos/wadi-rum?assettype=image&phrase=Wadi%20Rum&sort=mostpopular&license=rf%2Crm"]
|
| 52 |
|
| 53 |
return link
|
| 54 |
|
|
|
|
| 111 |
</html>
|
| 112 |
'''
|
| 113 |
|
| 114 |
+
link_info = f'''
|
| 115 |
<!DOCTYPE html>
|
| 116 |
<html>
|
| 117 |
<head>
|
|
|
|
| 121 |
<h1>Useful Links</h1>
|
| 122 |
|
| 123 |
<ul>
|
| 124 |
+
<li>Restaurants : <a href="{links[0]}" target="_blank">{links[0]}</a></li>
|
| 125 |
+
<li>Hotels : <a href="{links[1]}" target="_blank">{links[1]}</a></li>
|
| 126 |
+
<li>Images : <a href="{links[2]}" target="_blank">{links[2]}</a></li>
|
| 127 |
</ul>
|
| 128 |
</body>
|
| 129 |
</html>
|