Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,11 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
from ailib import whisper_transcribe
|
3 |
|
4 |
-
def transcribe(
|
5 |
-
|
6 |
-
open(filename, 'wb').write(audio)
|
7 |
-
return whisper_transcribe(
|
8 |
|
9 |
|
10 |
gr.Label("Demo CORFO")
|
|
|
1 |
import gradio as gr
|
2 |
+
from pydub import AudioSegment
|
3 |
from ailib import whisper_transcribe
|
4 |
|
5 |
+
def transcribe(audiofile):
|
6 |
+
#audio = AudioSegment.from_file(audiofile)
|
7 |
+
#open(filename, 'wb').write(audio)
|
8 |
+
return whisper_transcribe(audiofile)
|
9 |
|
10 |
|
11 |
gr.Label("Demo CORFO")
|