Update app.py
Browse files
app.py
CHANGED
@@ -80,9 +80,10 @@ def inference(audio):
|
|
80 |
# print audio data as text
|
81 |
# print(result.text)
|
82 |
getText = generator(result.text, max_new_tokens=10, num_return_sequences=5)
|
83 |
-
pprint("getText: ",
|
|
|
84 |
# text.result
|
85 |
-
return
|
86 |
|
87 |
|
88 |
|
|
|
80 |
# print audio data as text
|
81 |
# print(result.text)
|
82 |
getText = generator(result.text, max_new_tokens=10, num_return_sequences=5)
|
83 |
+
pprint("getText: ", getText)
|
84 |
+
pprint("text.result: ", text.result)
|
85 |
# text.result
|
86 |
+
return getText, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
87 |
|
88 |
|
89 |
|