Spaces:
Sleeping
Sleeping
File size: 1,612 Bytes
7042293 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# pages/lost_at_sea.py
import io
import tempfile
import time
from pathlib import Path
import cv2
import numpy as np
import streamlit as st
from PIL import Image
from utils.model_manager import get_model_manager, load_model
from urllib.parse import quote_plus
# =============== Page setup ===============
st.set_page_config(
page_title="Lost at Sea", layout="wide", initial_sidebar_state="expanded"
)
st.markdown(
"<h2 style='text-align:center;margin-top:0'>SAR-X<sup>ai</h2>"
"<h2 style='text-align:center;margin-top:0'>Task Drone(s) 🛸</h2>",
unsafe_allow_html=True,
)
# =============== Sidebar: custom menu + cards ===============
with st.sidebar:
st.page_link("app.py", label="Home")
st.page_link("pages/bushland_beacon.py", label="Bushland Beacon")
st.page_link("pages/lost_at_sea.py", label="Lost at Sea")
st.page_link("pages/signal_watch.py", label="Signal Watch")
st.markdown("---")
st.page_link("pages/task_satellite.py", label="Task Satellite")
st.page_link("pages/task_drone.py", label="Task Drone")
st.markdown("---")
# Simple "card" styling in the sidebar
st.markdown(
"""
<style>
.sb-card {border:1px solid rgba(255,255,255,0.15); padding:14px; border-radius:8px; margin-bottom:16px;}
.sb-card h4 {margin:0 0 10px 0; font-weight:700;}
</style>
""",
unsafe_allow_html=True,
)
st.set_page_config(page_title="Map demo", layout="wide")
place = "Adelaide, South Australia"
embed_url = f"https://www.google.com/maps?q={quote_plus(place)}&output=embed"
st.components.v1.iframe(embed_url, height=500) |