Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -11,9 +11,9 @@ pipe.model.config.forced_decoder_ids = processor.get_decoder_prompt_ids(language
|
|
11 |
|
12 |
|
13 |
def recognize(input_audio):
|
14 |
-
print('?????????-------------')
|
15 |
-
print(type(input_audio))
|
16 |
-
print(input_audio)
|
17 |
output_text = pipe(input_audio)['text']
|
18 |
return output_text
|
19 |
|
@@ -29,7 +29,7 @@ with gr.Blocks() as demo:
|
|
29 |
|
30 |
audio_button = gr.Button(value="Recognize!")
|
31 |
text = gr.Textbox(lines=2, label='你要不要看看你说了啥???')
|
32 |
-
audio_button.click(recognize, inputs=[input_audio], outputs=[text])
|
33 |
|
34 |
|
35 |
demo.launch()
|
|
|
11 |
|
12 |
|
13 |
def recognize(input_audio):
|
14 |
+
# print('?????????-------------')
|
15 |
+
# print(type(input_audio))
|
16 |
+
# print(input_audio)
|
17 |
output_text = pipe(input_audio)['text']
|
18 |
return output_text
|
19 |
|
|
|
29 |
|
30 |
audio_button = gr.Button(value="Recognize!")
|
31 |
text = gr.Textbox(lines=2, label='你要不要看看你说了啥???')
|
32 |
+
audio_button.click(recognize, inputs=[input_audio], outputs=[text],api_name='predict')
|
33 |
|
34 |
|
35 |
demo.launch()
|