lucid-natsar-dev / services /app_service /pages /task_satellite copy.py
lucid-hf's picture
CI: deploy Docker/PDM Space
7042293 verified
# 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="Task Satellite", layout="wide", initial_sidebar_state="expanded"
)
st.markdown(
"<h2 style='text-align:center;margin-top:0'>S A R - X ai\u200b</h2>"
"<h2 style='text-align:center;margin-top:0'>Task Satellite 🛰️</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 = "Yunta, South Australia"
embed_url = f"https://www.google.com/maps?q={quote_plus(place)}&output=embed"
st.components.v1.iframe(embed_url, height=500)