Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,7 +78,7 @@ def extract_places_and_map(itinerary_text, city_context=None):
|
|
| 78 |
folium.Marker([lat, lon], popup=name).add_to(m)
|
| 79 |
|
| 80 |
# Return full HTML (with JS & CSS)
|
| 81 |
-
return m._repr_html_()
|
| 82 |
|
| 83 |
def generate_itinerary(mood, location, budget, days):
|
| 84 |
mood_text = "any mood" if mood == "Any" else mood
|
|
@@ -161,6 +161,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="teal", secondary_hue="teal")
|
|
| 161 |
width: 100% !important;
|
| 162 |
height: 400px !important;
|
| 163 |
border-radius: 8px;
|
|
|
|
| 164 |
}
|
| 165 |
#image-container img {
|
| 166 |
width: 100% !important;
|
|
@@ -172,7 +173,6 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="teal", secondary_hue="teal")
|
|
| 172 |
display: flex;
|
| 173 |
justify-content: center;
|
| 174 |
align-items: flex-start;
|
| 175 |
-
gap: 20px;
|
| 176 |
}
|
| 177 |
</style>
|
| 178 |
<div style='text-align: center;'>
|
|
|
|
| 78 |
folium.Marker([lat, lon], popup=name).add_to(m)
|
| 79 |
|
| 80 |
# Return full HTML (with JS & CSS)
|
| 81 |
+
return f"<div style='width:100%;height:400px;'>{m._repr_html_()}</div>"
|
| 82 |
|
| 83 |
def generate_itinerary(mood, location, budget, days):
|
| 84 |
mood_text = "any mood" if mood == "Any" else mood
|
|
|
|
| 161 |
width: 100% !important;
|
| 162 |
height: 400px !important;
|
| 163 |
border-radius: 8px;
|
| 164 |
+
overflow:hidden;
|
| 165 |
}
|
| 166 |
#image-container img {
|
| 167 |
width: 100% !important;
|
|
|
|
| 173 |
display: flex;
|
| 174 |
justify-content: center;
|
| 175 |
align-items: flex-start;
|
|
|
|
| 176 |
}
|
| 177 |
</style>
|
| 178 |
<div style='text-align: center;'>
|