ssiidd commited on
Commit
675f494
·
1 Parent(s): 59df896

Update code

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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())