openfree commited on
Commit
0520598
ยท
verified ยท
1 Parent(s): edce004

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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
- allow_flagging="never",
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
- allow_flagging="never",
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)