Update app.py
Browse files
app.py
CHANGED
@@ -11,10 +11,8 @@ pipe = pipeline("automatic-speech-recognition", model="openai/whisper-large-v3-t
|
|
11 |
def process_transcription(audio_input):
|
12 |
|
13 |
result = pipe(audio_input)
|
14 |
-
print(result["text"])
|
15 |
-
print(result)
|
16 |
# Extract the transcription text directly
|
17 |
-
transcription = result
|
18 |
return transcription
|
19 |
|
20 |
# Launch the interface
|
|
|
11 |
def process_transcription(audio_input):
|
12 |
|
13 |
result = pipe(audio_input)
|
|
|
|
|
14 |
# Extract the transcription text directly
|
15 |
+
transcription = result["text"]
|
16 |
return transcription
|
17 |
|
18 |
# Launch the interface
|