mskov commited on
Commit
25143b6
·
1 Parent(s): 5d7b694

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -91,14 +91,13 @@ def inference(audio, state=""):
91
  print("Object type of response: ", type(response))
92
  #infered = list(map(lambda x: x.split(',')[0], infers))
93
  #print("Infered type is: ", type(infered))
94
- state += str(infers) + "\n"
95
- print("STATE ", state)
96
 
97
-
 
98
 
99
  # result.text
100
  #return getText, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
101
- return result.text, state, state
102
 
103
 
104
 
 
91
  print("Object type of response: ", type(response))
92
  #infered = list(map(lambda x: x.split(',')[0], infers))
93
  #print("Infered type is: ", type(infered))
 
 
94
 
95
+
96
+ infer = str(infers).split(",")
97
 
98
  # result.text
99
  #return getText, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
100
+ return result.text, state, infer
101
 
102
 
103