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

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -489,8 +489,7 @@ 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
- auth_message="Enter the shared password to access the app",
494
  show_error=True
495
  )
496
  else:
@@ -514,8 +513,7 @@ if __name__ == "__main__":
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
 
 
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
  app.launch(
514
  server_name="127.0.0.1",
515
  server_port=port,
516
+ auth=[("user", APP_PASSWORD)],
 
517
  show_error=True
518
  )
519