Wauplin HF staff commited on
Commit
46fae5e
1 Parent(s): 7524c65

Rely on `os.getenv("SPACE_ID")`

Browse files

This is a variable already injected in your Space environment. No need to add a `HF_ID` yourself. See docs here: https://huggingface.co/docs/hub/spaces-overview#helper-environment-variables

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,7 @@ AVAILABLE_MODELS = {
39
  'MetaVoice': 'metavoice'
40
  }
41
 
42
- SPACE_ID = os.getenv('HF_ID')
43
  MAX_SAMPLE_TXT_LENGTH = 300
44
  MIN_SAMPLE_TXT_LENGTH = 10
45
  DB_DATASET_ID = os.getenv('DATASET_ID')
 
39
  'MetaVoice': 'metavoice'
40
  }
41
 
42
+ SPACE_ID = os.getenv('SPACE_ID')
43
  MAX_SAMPLE_TXT_LENGTH = 300
44
  MIN_SAMPLE_TXT_LENGTH = 10
45
  DB_DATASET_ID = os.getenv('DATASET_ID')