Chloe Anastasiades commited on
Commit
fbcbf30
·
unverified ·
1 Parent(s): 02a4349

Make HF config to use configurable via a variable (#48)

Browse files
Files changed (2) hide show
  1. submission.py +1 -1
  2. ui_components.py +1 -1
submission.py CHANGED
@@ -31,7 +31,7 @@ from content import (
31
 
32
  # --- Constants and Configuration ---
33
  LOCAL_DEBUG = not (os.environ.get("system") == "spaces")
34
- CONFIG_NAME = "1.0.0-dev1" # This corresponds to 'config' in LeaderboardViewer
35
  IS_INTERNAL = os.environ.get("IS_INTERNAL", "false").lower() == "true"
36
 
37
  OWNER = "allenai"
 
31
 
32
  # --- Constants and Configuration ---
33
  LOCAL_DEBUG = not (os.environ.get("system") == "spaces")
34
+ CONFIG_NAME = os.getenv("HF_CONFIG", "1.0.0-dev1") # This corresponds to 'config' in LeaderboardViewer
35
  IS_INTERNAL = os.environ.get("IS_INTERNAL", "false").lower() == "true"
36
 
37
  OWNER = "allenai"
ui_components.py CHANGED
@@ -30,7 +30,7 @@ from content import (
30
 
31
  # --- Constants and Configuration ---
32
  LOCAL_DEBUG = not (os.environ.get("system") == "spaces")
33
- CONFIG_NAME = "1.0.0-dev1" # This corresponds to 'config' in LeaderboardViewer
34
  IS_INTERNAL = os.environ.get("IS_INTERNAL", "false").lower() == "true"
35
 
36
  OWNER = "allenai"
 
30
 
31
  # --- Constants and Configuration ---
32
  LOCAL_DEBUG = not (os.environ.get("system") == "spaces")
33
+ CONFIG_NAME = os.getenv("HF_CONFIG", "1.0.0-dev1") # This corresponds to 'config' in LeaderboardViewer
34
  IS_INTERNAL = os.environ.get("IS_INTERNAL", "false").lower() == "true"
35
 
36
  OWNER = "allenai"