Spaces:
Sleeping
Sleeping
Update code
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def inference(wav,instruction):
|
|
35 |
text, *_ = nbests[0]
|
36 |
instruction=instruction.split(" <|")[0]
|
37 |
# import pdb;pdb.set_trace()
|
38 |
-
text=text.replace(instruction,"").replace("_STOP","").split(".")[-1]
|
39 |
# if lang == "chinese":
|
40 |
# wav = text2speechch(text)["wav"]
|
41 |
# scipy.io.wavfile.write("out.wav",text2speechch.fs , wav.view(-1).cpu().numpy())
|
|
|
35 |
text, *_ = nbests[0]
|
36 |
instruction=instruction.split(" <|")[0]
|
37 |
# import pdb;pdb.set_trace()
|
38 |
+
text=text.replace(instruction,"").replace("<|audio|>","").replace("_STOP","").split(".")[-1]
|
39 |
# if lang == "chinese":
|
40 |
# wav = text2speechch(text)["wav"]
|
41 |
# scipy.io.wavfile.write("out.wav",text2speechch.fs , wav.view(-1).cpu().numpy())
|