Mark0047 commited on
Commit
7cefe62
·
verified ·
1 Parent(s): d4d8b59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -4,7 +4,6 @@
4
 
5
  import gradio as gr
6
 
7
-
8
  model = gr.load("models/openai/whisper-large-v3-turbo")
9
 
10
  # Define a function to process the output and extract only the transcription text
@@ -17,7 +16,7 @@ def process_transcription(audio_input):
17
 
18
  # Launch the interface
19
  gr.Interface(
20
- fn=process_transcription,
21
- inputs="audio",
22
  outputs="text"
23
  ).launch()
 
4
 
5
  import gradio as gr
6
 
 
7
  model = gr.load("models/openai/whisper-large-v3-turbo")
8
 
9
  # Define a function to process the output and extract only the transcription text
 
16
 
17
  # Launch the interface
18
  gr.Interface(
19
+ process_transcription,
20
+ gr.Audio(type="filepath"),
21
  outputs="text"
22
  ).launch()