Spaces:
Sleeping
Sleeping
auth
Browse files
app.py
CHANGED
|
@@ -746,4 +746,9 @@ with gr.Blocks(title="Piclets Discovery Server") as app:
|
|
| 746 |
if __name__ == "__main__":
|
| 747 |
# Protect web UI with authentication while allowing API access
|
| 748 |
admin_password = os.getenv("ADMIN_PASSWORD", "changeme")
|
| 749 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 746 |
if __name__ == "__main__":
|
| 747 |
# Protect web UI with authentication while allowing API access
|
| 748 |
admin_password = os.getenv("ADMIN_PASSWORD", "changeme")
|
| 749 |
+
|
| 750 |
+
# Configure for HuggingFace Space environment
|
| 751 |
+
app.launch(
|
| 752 |
+
auth=("admin", admin_password),
|
| 753 |
+
ssr_mode=False
|
| 754 |
+
)
|