ancv commited on
Commit
dc56bd0
·
verified ·
1 Parent(s): 88d50ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -135,7 +135,7 @@ def run_voice_clone_tts(
135
  inputs = processor(
136
  text=text.lower(),
137
  prompt_speech_path=prompt_speech_path,
138
- prompt_text=prompt_text_clean.lower(),
139
  return_tensors="pt"
140
  ).to(device) # Move processor output to model device
141
 
 
135
  inputs = processor(
136
  text=text.lower(),
137
  prompt_speech_path=prompt_speech_path,
138
+ prompt_text=prompt_text_clean.lower() if prompt_text_clean else prompt_text_clean,
139
  return_tensors="pt"
140
  ).to(device) # Move processor output to model device
141