hailey2024 commited on
Commit
40daf13
·
1 Parent(s): f8fbbd2

remove gradio auth

Browse files
Files changed (2) hide show
  1. app.py +0 -4
  2. src/eval_server.py +0 -5
app.py CHANGED
@@ -13,8 +13,6 @@ REDUNDANCY = int(os.environ['REDUNDANCY'])
13
  ALLOWED_USERS_STR = os.environ['ALLOW_USERS']
14
  ALLOWED_USERS = [u.strip() for u in ALLOWED_USERS_STR.split(',') if u.strip()]
15
 
16
- BASIC_USER = os.environ['BASIC_USER']
17
- BASIC_PASS = os.environ['BASIC_PASS']
18
  ROUND_ID = 'r1'
19
  AUTO_ALLO_NUM = int(os.environ['AUTO_ALLO_NUM'])
20
  AUTO_COMMIT = int(os.environ.get('AUTO_COMMIT', '10'))
@@ -27,7 +25,5 @@ args = Namespace(
27
  allowed_users=ALLOWED_USERS,
28
  auto_allo_num=AUTO_ALLO_NUM,
29
  auto_commit=AUTO_COMMIT,
30
- basic_user=BASIC_USER,
31
- basic_pass=BASIC_PASS,
32
  )
33
  app_main(args)
 
13
  ALLOWED_USERS_STR = os.environ['ALLOW_USERS']
14
  ALLOWED_USERS = [u.strip() for u in ALLOWED_USERS_STR.split(',') if u.strip()]
15
 
 
 
16
  ROUND_ID = 'r1'
17
  AUTO_ALLO_NUM = int(os.environ['AUTO_ALLO_NUM'])
18
  AUTO_COMMIT = int(os.environ.get('AUTO_COMMIT', '10'))
 
25
  allowed_users=ALLOWED_USERS,
26
  auto_allo_num=AUTO_ALLO_NUM,
27
  auto_commit=AUTO_COMMIT,
 
 
28
  )
29
  app_main(args)
src/eval_server.py CHANGED
@@ -796,10 +796,6 @@ def app_main(args) -> None:
796
  queue=True,
797
  )
798
 
799
- basic_user = args.basic_user
800
- basic_pass = args.basic_pass
801
- auth_tuple = (basic_user, basic_pass)
802
-
803
  # Extract image directory from template to add to allowed_paths
804
  # e.g., "/path/to/img/{label}/{path}" -> "/path/to/img"
805
  image_dir = args.image_template.split('{')[0].rstrip('/')
@@ -811,6 +807,5 @@ def app_main(args) -> None:
811
 
812
  demo.queue(max_size=256).launch(
813
  ssr_mode=False,
814
- auth=auth_tuple,
815
  allowed_paths=allowed_paths,
816
  )
 
796
  queue=True,
797
  )
798
 
 
 
 
 
799
  # Extract image directory from template to add to allowed_paths
800
  # e.g., "/path/to/img/{label}/{path}" -> "/path/to/img"
801
  image_dir = args.image_template.split('{')[0].rstrip('/')
 
807
 
808
  demo.queue(max_size=256).launch(
809
  ssr_mode=False,
 
810
  allowed_paths=allowed_paths,
811
  )