Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
f9eef39
1
Parent(s):
a6c3087
add embed code
Browse files
app.py
CHANGED
@@ -329,6 +329,27 @@ if show_interventions:
|
|
329 |
show_requests(filtered_df)
|
330 |
|
331 |
st_folium(m, use_container_width=True, returned_objects=[], feature_group_to_add=fg, key="map")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
332 |
tab_ar, tab_en, tab_fr = st.tabs(["العربية", "English", "Français"])
|
333 |
|
334 |
|
|
|
329 |
show_requests(filtered_df)
|
330 |
|
331 |
st_folium(m, use_container_width=True, returned_objects=[], feature_group_to_add=fg, key="map")
|
332 |
+
|
333 |
+
# Embed code
|
334 |
+
with st.expander("📝 Embed code | Code à intégrer | كود للتضمين"):
|
335 |
+
st.code(
|
336 |
+
"""
|
337 |
+
<iframe id="nt3awnou-map"
|
338 |
+
src="https://nt3awnou-embed-rescue-map.hf.space/?embed=true" width="1200" height="720"
|
339 |
+
frameborder="0"
|
340 |
+
width="850"
|
341 |
+
height="450"
|
342 |
+
title="Nt3awno Rescue Map">
|
343 |
+
</iframe>
|
344 |
+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/js/iframeResizer.min.js"></script>
|
345 |
+
<script>
|
346 |
+
iFrameResize({}, "#nt3awnou-map");
|
347 |
+
</script>
|
348 |
+
""",
|
349 |
+
language="html",
|
350 |
+
)
|
351 |
+
|
352 |
+
|
353 |
tab_ar, tab_en, tab_fr = st.tabs(["العربية", "English", "Français"])
|
354 |
|
355 |
|