Spaces:
Running
Running
Allow setting # of GPUs
Browse files
app.py
CHANGED
@@ -15,6 +15,8 @@ S2UT_DIR = 'model'
|
|
15 |
VOCODER_TAG = 'espnet/cvss-c_en_wavegan_hubert_vocoder'
|
16 |
VOCODER_DIR = 'vocoder'
|
17 |
|
|
|
|
|
18 |
|
19 |
def download_model(tag: str, out_dir: str):
|
20 |
from huggingface_hub import snapshot_download
|
@@ -78,6 +80,7 @@ def s2st(
|
|
78 |
vocoder_path,
|
79 |
'config.yml',
|
80 |
),
|
|
|
81 |
)
|
82 |
|
83 |
# Restore working directory
|
|
|
15 |
VOCODER_TAG = 'espnet/cvss-c_en_wavegan_hubert_vocoder'
|
16 |
VOCODER_DIR = 'vocoder'
|
17 |
|
18 |
+
NGPU = 0
|
19 |
+
|
20 |
|
21 |
def download_model(tag: str, out_dir: str):
|
22 |
from huggingface_hub import snapshot_download
|
|
|
80 |
vocoder_path,
|
81 |
'config.yml',
|
82 |
),
|
83 |
+
ngpu=NGPU,
|
84 |
)
|
85 |
|
86 |
# Restore working directory
|