Spaces:
Runtime error
Runtime error
naveenk-ai
commited on
Commit
•
c0e158c
1
Parent(s):
9b938a9
Update app.py
Browse files
app.py
CHANGED
@@ -229,6 +229,16 @@ def get_patched_voice_conversion(ov_model: ov.Model, device: str) -> callable:
|
|
229 |
|
230 |
return voice_conversion_impl
|
231 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
232 |
en_base_speaker_tts.model.infer = get_pathched_infer(ov_en_tts, device.value)
|
233 |
tone_color_converter.model.voice_conversion = get_patched_voice_conversion(ov_voice_conversion, device.value)
|
234 |
if enable_chinese_lang:
|
|
|
229 |
|
230 |
return voice_conversion_impl
|
231 |
|
232 |
+
core = ov.Core()
|
233 |
+
|
234 |
+
device = widgets.Dropdown(
|
235 |
+
options=core.available_devices + ["AUTO"],
|
236 |
+
value="AUTO",
|
237 |
+
description="Device:",
|
238 |
+
disabled=False,
|
239 |
+
)
|
240 |
+
device
|
241 |
+
|
242 |
en_base_speaker_tts.model.infer = get_pathched_infer(ov_en_tts, device.value)
|
243 |
tone_color_converter.model.voice_conversion = get_patched_voice_conversion(ov_voice_conversion, device.value)
|
244 |
if enable_chinese_lang:
|