Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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,
|
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 |
|