mskov commited on
Commit
34ff8a4
·
1 Parent(s): 4825176

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -89,9 +89,7 @@ def inference(audio, state=""):
89
  print("print2: infers ", infers)
90
  print("print3: Responses ", response)
91
  print("Object type of response: ", type(response))
92
- infers = len(
93
- [elm for elm in infers.split()]
94
- )
95
 
96
 
97
 
 
89
  print("print2: infers ", infers)
90
  print("print3: Responses ", response)
91
  print("Object type of response: ", type(response))
92
+ infers = list(map(lambda x: x.split(',')[0], infers))
 
 
93
 
94
 
95