Spaces:
Runtime error
Runtime error
fix bug in app.py
Browse files
app.py
CHANGED
@@ -98,7 +98,7 @@ def inference(wav,lang):
|
|
98 |
intent=text.split(" ")[0]
|
99 |
scenario=intent.split("_")[0]
|
100 |
action=intent.split("_")[1]
|
101 |
-
text="{scenario: "+scenario+", action: "+action"}"
|
102 |
# if lang == "chinese":
|
103 |
# wav = text2speechch(text)["wav"]
|
104 |
# scipy.io.wavfile.write("out.wav",text2speechch.fs , wav.view(-1).cpu().numpy())
|
|
|
98 |
intent=text.split(" ")[0]
|
99 |
scenario=intent.split("_")[0]
|
100 |
action=intent.split("_")[1]
|
101 |
+
text="{scenario: "+scenario+", action: "+action+"}"
|
102 |
# if lang == "chinese":
|
103 |
# wav = text2speechch(text)["wav"]
|
104 |
# scipy.io.wavfile.write("out.wav",text2speechch.fs , wav.view(-1).cpu().numpy())
|