Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import os
|
|
|
2 |
os.system("pip install git+https://github.com/openai/whisper.git")
|
3 |
import gradio as gr
|
4 |
import whisper
|
@@ -34,7 +35,7 @@ def inference(audio):
|
|
34 |
# print audio data as text
|
35 |
# print(result.text)
|
36 |
getText = generator(result.text, max_length=8, num_return_sequences=5)
|
37 |
-
|
38 |
return getText, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
39 |
|
40 |
|
|
|
1 |
import os
|
2 |
+
from pprint import pprint
|
3 |
os.system("pip install git+https://github.com/openai/whisper.git")
|
4 |
import gradio as gr
|
5 |
import whisper
|
|
|
35 |
# print audio data as text
|
36 |
# print(result.text)
|
37 |
getText = generator(result.text, max_length=8, num_return_sequences=5)
|
38 |
+
pprint(getText)
|
39 |
return getText, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
40 |
|
41 |
|