Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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"
|
|
|
|
| 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**")
|