Prgckwb
commited on
Commit
•
7fdb5ea
1
Parent(s):
ac2c578
debug
Browse files
app.py
CHANGED
@@ -22,6 +22,10 @@ def inference(
|
|
22 |
raise gr.Error(f"Expected string or bytes, got {type(text)}: {text}")
|
23 |
|
24 |
output_path = "audio.wav"
|
|
|
|
|
|
|
|
|
25 |
model.tts_to_file(text, speaker_ids[speaker], output_path, speed=speed)
|
26 |
return output_path
|
27 |
|
|
|
22 |
raise gr.Error(f"Expected string or bytes, got {type(text)}: {text}")
|
23 |
|
24 |
output_path = "audio.wav"
|
25 |
+
|
26 |
+
# Debugging: Print the input text and other parameters
|
27 |
+
print(f"Input text: {text}, Speed: {speed}, Speaker: {speaker}")
|
28 |
+
|
29 |
model.tts_to_file(text, speaker_ids[speaker], output_path, speed=speed)
|
30 |
return output_path
|
31 |
|