Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ mf_transcribe = gr.Interface(theme="Nymbo/Nymbo_Theme", css=css,
|
|
45 |
outputs="text",
|
46 |
title="Whisper Large V3 Turbo: ์์ฑ์ ํ
์คํธ๋ก ๋ณํ",
|
47 |
|
48 |
-
|
49 |
)
|
50 |
|
51 |
file_transcribe = gr.Interface(
|
@@ -56,11 +56,13 @@ file_transcribe = gr.Interface(
|
|
56 |
],
|
57 |
outputs="text",
|
58 |
title="Whisper Large V3 Turbo: ์์ฑ์ ํ
์คํธ๋ก ๋ณํ",
|
59 |
-
|
60 |
)
|
61 |
|
|
|
|
|
|
|
62 |
with demo:
|
63 |
gr.TabbedInterface([mf_transcribe, file_transcribe], ["Microphone", "Audio file"])
|
64 |
|
65 |
demo.queue().launch(ssr_mode=False)
|
66 |
-
|
|
|
45 |
outputs="text",
|
46 |
title="Whisper Large V3 Turbo: ์์ฑ์ ํ
์คํธ๋ก ๋ณํ",
|
47 |
|
48 |
+
flagging_mode="never", # Updated to use the new `flagging_mode`
|
49 |
)
|
50 |
|
51 |
file_transcribe = gr.Interface(
|
|
|
56 |
],
|
57 |
outputs="text",
|
58 |
title="Whisper Large V3 Turbo: ์์ฑ์ ํ
์คํธ๋ก ๋ณํ",
|
59 |
+
flagging_mode="never", # Updated to use the new `flagging_mode`
|
60 |
)
|
61 |
|
62 |
+
# Define the demo (Gradio Blocks container)
|
63 |
+
demo = gr.Blocks(theme=gr.themes.Ocean())
|
64 |
+
|
65 |
with demo:
|
66 |
gr.TabbedInterface([mf_transcribe, file_transcribe], ["Microphone", "Audio file"])
|
67 |
|
68 |
demo.queue().launch(ssr_mode=False)
|
|