Spaces:
Sleeping
Sleeping
Re-enable image protection with st.html() now that scrollbar shift is fixed
Browse files- interface/main.py +5 -0
interface/main.py
CHANGED
|
@@ -15,6 +15,7 @@ from components.gallery import render_gallery
|
|
| 15 |
from components.labeler import render_labeler
|
| 16 |
from components.recorder import render_recorder
|
| 17 |
from components.downloader import render_downloader
|
|
|
|
| 18 |
from services.auth_service import require_auth, do_logout
|
| 19 |
|
| 20 |
# ── PAGE CONFIG ──────────────────────────────────────────────────────────────
|
|
@@ -56,6 +57,10 @@ st.markdown("""
|
|
| 56 |
}
|
| 57 |
</style>
|
| 58 |
""", unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
# ── AUTHENTICATION GATE ───────────────────────────────────────────────────────
|
| 60 |
if not require_auth():
|
| 61 |
st.stop()
|
|
|
|
| 15 |
from components.labeler import render_labeler
|
| 16 |
from components.recorder import render_recorder
|
| 17 |
from components.downloader import render_downloader
|
| 18 |
+
from components.image_protection import inject_image_protection
|
| 19 |
from services.auth_service import require_auth, do_logout
|
| 20 |
|
| 21 |
# ── PAGE CONFIG ──────────────────────────────────────────────────────────────
|
|
|
|
| 57 |
}
|
| 58 |
</style>
|
| 59 |
""", unsafe_allow_html=True)
|
| 60 |
+
|
| 61 |
+
# ── IMAGE PROTECTION (prevent download / right-click save) ───────────────────
|
| 62 |
+
inject_image_protection()
|
| 63 |
+
|
| 64 |
# ── AUTHENTICATION GATE ───────────────────────────────────────────────────────
|
| 65 |
if not require_auth():
|
| 66 |
st.stop()
|