Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,15 +28,7 @@ def transcribe_ge(speech):
|
|
28 |
return text
|
29 |
|
30 |
|
31 |
-
demo = gr.Blocks()
|
32 |
-
|
33 |
-
with demo:
|
34 |
-
audio_file = gr.Audio(type="filepath")
|
35 |
-
text = gr.Textbox()
|
36 |
-
b1 = gr.Button("Recognize Georgian")
|
37 |
-
b1.click(transcribe_ge, inputs=audio_file, outputs=text)
|
38 |
|
39 |
-
demo.launch()
|
40 |
|
41 |
title = "Whisper small finetuned on CV14 dataset"
|
42 |
description = """
|
@@ -48,7 +40,7 @@ demo = gr.Blocks()
|
|
48 |
mic_translate = gr.Interface(
|
49 |
fn=transcribe_ge,
|
50 |
inputs=gr.Audio(source="microphone", type="filepath"),
|
51 |
-
outputs=gr.Textbox()
|
52 |
title=title,
|
53 |
description=description,
|
54 |
)
|
@@ -56,7 +48,7 @@ mic_translate = gr.Interface(
|
|
56 |
file_translate = gr.Interface(
|
57 |
fn=transcribe_ge,
|
58 |
inputs=gr.Audio(source="upload", type="filepath"),
|
59 |
-
outputs=gr.Textbox()
|
60 |
examples=[["./example.wav"]],
|
61 |
title=title,
|
62 |
description=description,
|
|
|
28 |
return text
|
29 |
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
|
|
|
32 |
|
33 |
title = "Whisper small finetuned on CV14 dataset"
|
34 |
description = """
|
|
|
40 |
mic_translate = gr.Interface(
|
41 |
fn=transcribe_ge,
|
42 |
inputs=gr.Audio(source="microphone", type="filepath"),
|
43 |
+
outputs=gr.Textbox(),
|
44 |
title=title,
|
45 |
description=description,
|
46 |
)
|
|
|
48 |
file_translate = gr.Interface(
|
49 |
fn=transcribe_ge,
|
50 |
inputs=gr.Audio(source="upload", type="filepath"),
|
51 |
+
outputs=gr.Textbox(),
|
52 |
examples=[["./example.wav"]],
|
53 |
title=title,
|
54 |
description=description,
|