Arjon07CSE commited on
Commit
d36929d
·
verified ·
1 Parent(s): 8f762ad

removed authentication

Browse files
Files changed (1) hide show
  1. app.py +2 -11
app.py CHANGED
@@ -604,17 +604,8 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue", secondary_hue="orange"),
604
  # LAUNCH THE APP
605
  # ==============================================================================
606
 
 
607
  if __name__ == "__main__":
608
- auth_credentials = os.getenv("AUTH_CREDENTIALS")
609
- auth_tuple = None
610
- if auth_credentials and ":" in auth_credentials:
611
- user, pwd = auth_credentials.split(":", 1)
612
- auth_tuple = (user, pwd)
613
- logger.info("Using authentication credentials from environment variable.")
614
- else:
615
- logger.warning("No AUTH_CREDENTIALS found. Using default insecure credentials. Set this as an environment variable for production.")
616
- auth_tuple = ("bnp", "12345")
617
-
618
- app.launch(server_name="0.0.0.0", share=True, debug=False, auth=auth_tuple)
619
 
620
 
 
604
  # LAUNCH THE APP
605
  # ==============================================================================
606
 
607
+ # --- LAUNCH THE APP ---
608
  if __name__ == "__main__":
609
+ app.launch(debug=True, share=True)
 
 
 
 
 
 
 
 
 
 
610
 
611