KaixuanGuo commited on
Commit
34a98e0
·
verified ·
1 Parent(s): 852c8e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -116,6 +116,8 @@ def generate_podcast(text, s1_wav, s1_txt, s2_wav, s2_txt, lang, seed, model_nam
116
  api_name="/dialogue_synthesis_function"
117
  )
118
  print(result)
 
 
119
  return result
120
  # if isinstance(result, (tuple, list)):
121
  # audio_path = result[0]
@@ -274,6 +276,8 @@ def build_ui():
274
  print(f"【Style Instruct】: {instruct}")
275
  print(f"【SPK1 Audio Path】: {s1_wav}")
276
  print(f"【SPK1 Text】: {s1_txt}")
 
 
277
  print(f"【Seed】: {seed}")
278
  print("="*30)
279
 
 
116
  api_name="/dialogue_synthesis_function"
117
  )
118
  print(result)
119
+ if not isinstance(result, tuple):
120
+ result = (result, "podcast geenration completed successfully!")
121
  return result
122
  # if isinstance(result, (tuple, list)):
123
  # audio_path = result[0]
 
276
  print(f"【Style Instruct】: {instruct}")
277
  print(f"【SPK1 Audio Path】: {s1_wav}")
278
  print(f"【SPK1 Text】: {s1_txt}")
279
+ print(f"【SPK2 Audio Path】: {s2_wav}")
280
+ print(f"【SPK2 Text】: {s2_txt}")
281
  print(f"【Seed】: {seed}")
282
  print("="*30)
283