Fraser commited on
Commit
eeff6eb
·
1 Parent(s): 7a76de9
Files changed (1) hide show
  1. app.py +6 -1
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
- app.launch(auth=("admin", admin_password))
 
 
 
 
 
 
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
+ )