Respair commited on
Commit
938479a
·
verified ·
1 Parent(s): be27ef3

Update demo.py

Browse files
Files changed (1) hide show
  1. demo.py +3 -0
demo.py CHANGED
@@ -103,6 +103,9 @@ def Client_Synthesize_Audio(text, voice, voice2_path, spk_id, vcsteps, embscale,
103
  print(f"Steps: {vcsteps}, Scale: {embscale}, Beta: {beta}, RoS: {ros}, T: {t}")
104
  print(f"English Mode: {language_checkbox}")
105
 
 
 
 
106
  voice2_arg = voice2_path
107
 
108
  try:
 
103
  print(f"Steps: {vcsteps}, Scale: {embscale}, Beta: {beta}, RoS: {ros}, T: {t}")
104
  print(f"English Mode: {language_checkbox}")
105
 
106
+ if voice2_path is not None:
107
+ voice2_path = {"path": voice2_path, "meta": {"_type": "gradio.FileData"}}
108
+
109
  voice2_arg = voice2_path
110
 
111
  try: