Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Rely on `os.getenv("SPACE_ID")`
Browse filesThis 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
app.py
CHANGED
@@ -39,7 +39,7 @@ AVAILABLE_MODELS = {
|
|
39 |
'MetaVoice': 'metavoice'
|
40 |
}
|
41 |
|
42 |
-
SPACE_ID = os.getenv('
|
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')
|