khirodsahoo93 commited on
Commit
910a040
Β·
verified Β·
1 Parent(s): e2adbf3

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -489,7 +489,8 @@ if __name__ == "__main__":
489
  print("πŸš€ Launching Python to C++ Code Optimizer on Hugging Face Spaces")
490
  print("πŸ” Password protection enabled")
491
  app.launch(
492
- auth=("user", APP_PASSWORD),
 
493
  show_error=True
494
  )
495
  else:
@@ -513,7 +514,8 @@ if __name__ == "__main__":
513
  app.launch(
514
  server_name="127.0.0.1",
515
  server_port=port,
516
- auth=("user", APP_PASSWORD),
 
517
  show_error=True
518
  )
519
 
 
489
  print("πŸš€ Launching Python to C++ Code Optimizer on Hugging Face Spaces")
490
  print("πŸ” Password protection enabled")
491
  app.launch(
492
+ auth={"user": APP_PASSWORD},
493
+ auth_message="Enter the shared password to access the app",
494
  show_error=True
495
  )
496
  else:
 
514
  app.launch(
515
  server_name="127.0.0.1",
516
  server_port=port,
517
+ auth={"user": APP_PASSWORD},
518
+ auth_message="Enter the shared password to access the app",
519
  show_error=True
520
  )
521