Update app.py
Browse files
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 |
|