Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -156,6 +156,7 @@ def enroll_person(name: str, face_image: np.ndarray):
|
|
| 156 |
|
| 157 |
# ==================== 4. GRADIO UI ====================
|
| 158 |
with gr.Blocks(title="SecureFace ID – Privacy-First Recognition", theme=gr.themes.Soft()) as demo:
|
|
|
|
| 159 |
gr.Markdown("# SecureFace ID")
|
| 160 |
gr.Markdown("**Every face is always blurred • Only authorized people are identified • Persistent tracking**")
|
| 161 |
|
|
|
|
| 156 |
|
| 157 |
# ==================== 4. GRADIO UI ====================
|
| 158 |
with gr.Blocks(title="SecureFace ID – Privacy-First Recognition", theme=gr.themes.Soft()) as demo:
|
| 159 |
+
demo.load(lambda: gr.themes.Soft(), js="") # NEW: Apply theme on load (safe for all 4.x versions)
|
| 160 |
gr.Markdown("# SecureFace ID")
|
| 161 |
gr.Markdown("**Every face is always blurred • Only authorized people are identified • Persistent tracking**")
|
| 162 |
|