JunzhaoSun commited on
Commit
f9ed32e
·
1 Parent(s): 3ac00da

更换启动方式

Browse files
Files changed (1) hide show
  1. app.py +0 -18
app.py CHANGED
@@ -19,24 +19,6 @@ def inference(audio):
19
  print(result.text)
20
  return result.text
21
 
22
- # block = gr.Blocks()
23
- #
24
- # with block:
25
- # gr.Markdown("# Whisper Speech Recognition")
26
- # with gr.Group():
27
- # with gr.Box():
28
- # with gr.Row().style(mobile_collapse=False, equal_height=True):
29
- # audio = gr.Audio(label="Input Audio", source="microphone", type="filepath")
30
- # btn = gr.Button("Transcribe")
31
- #
32
- # text = gr.Textbox(show_label=False, elem_id="result-textarea")
33
- # btn.click(inference, inputs=[audio], outputs=[text], api_name="predict")
34
- #
35
- # gr.Markdown("[Innev GitHub](https://github.com/innev)")
36
- #
37
- # block.launch()
38
-
39
-
40
  article = """
41
  ## 参考
42
  - [Innev GitHub](https://github.com/innev)
 
19
  print(result.text)
20
  return result.text
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  article = """
23
  ## 参考
24
  - [Innev GitHub](https://github.com/innev)