Force CPU inference on ZeroGPU
Browse files
app.py
CHANGED
|
@@ -112,7 +112,7 @@ def get_tts_pipeline(voice: str):
|
|
| 112 |
lang_code = tts_lang_from_voice(voice)
|
| 113 |
with tts_lock:
|
| 114 |
if lang_code not in tts_pipelines:
|
| 115 |
-
tts_pipelines[lang_code] = KPipeline(lang_code=lang_code)
|
| 116 |
return tts_pipelines[lang_code]
|
| 117 |
|
| 118 |
|
|
|
|
| 112 |
lang_code = tts_lang_from_voice(voice)
|
| 113 |
with tts_lock:
|
| 114 |
if lang_code not in tts_pipelines:
|
| 115 |
+
tts_pipelines[lang_code] = KPipeline(lang_code=lang_code, device="cpu")
|
| 116 |
return tts_pipelines[lang_code]
|
| 117 |
|
| 118 |
|