Spaces:
Running
on
T4
Running
on
T4
lihaoxin2020
commited on
Commit
•
a9262c2
1
Parent(s):
d27d17d
debug
Browse files- fam/ui/app.py +2 -0
fam/ui/app.py
CHANGED
@@ -47,6 +47,7 @@ def _handle_edge_cases(to_say, upload_target):
|
|
47 |
|
48 |
|
49 |
def tts(to_say, top_p, guidance, toggle, preset_dropdown, upload_target, record_target):
|
|
|
50 |
d_top_p = denormalise_top_p(top_p)
|
51 |
d_guidance = denormalise_guidance(guidance)
|
52 |
|
@@ -67,6 +68,7 @@ def tts(to_say, top_p, guidance, toggle, preset_dropdown, upload_target, record_
|
|
67 |
"speaker_ref_path": PRESET_VOICES[preset_dropdown] if toggle == RADIO_CHOICES[0] else None,
|
68 |
}
|
69 |
headers = {"Content-Type": "audio/wav", "X-Payload": json.dumps(config)}
|
|
|
70 |
if not custom_target_path:
|
71 |
response = requests.post(API_SERVER_URL, headers=headers, data=None)
|
72 |
else:
|
|
|
47 |
|
48 |
|
49 |
def tts(to_say, top_p, guidance, toggle, preset_dropdown, upload_target, record_target):
|
50 |
+
print(f"[debug] {to_say}\ntoggle: {toggle}\npreset_dropdown: {preset_dropdown}\nupload_target: {upload_target}\nrecord_target: {record_target}")
|
51 |
d_top_p = denormalise_top_p(top_p)
|
52 |
d_guidance = denormalise_guidance(guidance)
|
53 |
|
|
|
68 |
"speaker_ref_path": PRESET_VOICES[preset_dropdown] if toggle == RADIO_CHOICES[0] else None,
|
69 |
}
|
70 |
headers = {"Content-Type": "audio/wav", "X-Payload": json.dumps(config)}
|
71 |
+
print(f"[debug] custom_target_path: {custom_target_path}")
|
72 |
if not custom_target_path:
|
73 |
response = requests.post(API_SERVER_URL, headers=headers, data=None)
|
74 |
else:
|