AhmedAdamu commited on
Commit
43f5091
·
verified ·
1 Parent(s): 6fd64b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -155,7 +155,8 @@ def enroll_person(name: str, face_image: np.ndarray):
155
  return f"Successfully enrolled: {name}"
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**")
 
155
  return f"Successfully enrolled: {name}"
156
 
157
  # ==================== 4. GRADIO UI ====================
158
+ with gr.Blocks(title="SecureFace ID – Privacy-First Recognition") as demo:
159
+ demo.theme = gr.themes.Soft() # ← THIS IS THE CORRECT WAY NOW
160
  demo.load(lambda: gr.themes.Soft(), js="") # NEW: Apply theme on load (safe for all 4.x versions)
161
  gr.Markdown("# SecureFace ID")
162
  gr.Markdown("**Every face is always blurred • Only authorized people are identified • Persistent tracking**")