Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -125,7 +125,7 @@ def infer(text_raw, character, language, duration, noise_scale, noise_scale_w):
|
|
125 |
sid = torch.LongTensor([0])
|
126 |
audio = net_g.infer(x_tst, x_tst_lengths, sid=sid, noise_scale=noise_scale, noise_scale_w=noise_scale_w, length_scale=duration)[0][0,0].data.float().numpy()
|
127 |
currentDateAndTime = datetime.now()
|
128 |
-
print(f"
|
129 |
if language != '日本語':
|
130 |
print(f"translate from {language}: {text_raw}")
|
131 |
show_memory_info(str(currentDateAndTime) + " infer调用后")
|
|
|
125 |
sid = torch.LongTensor([0])
|
126 |
audio = net_g.infer(x_tst, x_tst_lengths, sid=sid, noise_scale=noise_scale, noise_scale_w=noise_scale_w, length_scale=duration)[0][0,0].data.float().numpy()
|
127 |
currentDateAndTime = datetime.now()
|
128 |
+
print(f"\nCharacter {character} inference successful: {text}")
|
129 |
if language != '日本語':
|
130 |
print(f"translate from {language}: {text_raw}")
|
131 |
show_memory_info(str(currentDateAndTime) + " infer调用后")
|