AhmedAdamu commited on
Commit
c739f72
·
verified ·
1 Parent(s): f8fd810

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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