ylacombe HF staff ysharma HF staff commited on
Commit
47407ef
1 Parent(s): 17f14b2

upgraded to gradio 5 (#10)

Browse files

- upgraded to gradio 5 (81c1994f5176bc2abd6b150daff7e2df1d9fb750)
- added theme and disabled default ssr mode (68854867def2d89c2504c93ab5467b8c1dd7fbe4)


Co-authored-by: yuvraj sharma <[email protected]>

Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +2 -2
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🤯
4
  colorFrom: indigo
5
  colorTo: red
6
  sdk: gradio
7
- sdk_version: 4.37.2
8
  app_file: app.py
9
  pinned: false
10
  tags:
 
4
  colorFrom: indigo
5
  colorTo: red
6
  sdk: gradio
7
+ sdk_version: 5.0.0
8
  app_file: app.py
9
  pinned: false
10
  tags:
app.py CHANGED
@@ -90,7 +90,7 @@ def yt_transcribe(yt_url, task, max_filesize=75.0):
90
  return html_embed_str, text
91
 
92
 
93
- demo = gr.Blocks()
94
 
95
  mf_transcribe = gr.Interface(
96
  fn=transcribe,
@@ -143,5 +143,5 @@ yt_transcribe = gr.Interface(
143
  with demo:
144
  gr.TabbedInterface([mf_transcribe, file_transcribe, yt_transcribe], ["Microphone", "Audio file", "YouTube"])
145
 
146
- demo.queue().launch()
147
 
 
90
  return html_embed_str, text
91
 
92
 
93
+ demo = gr.Blocks(theme=gr.themes.Ocean())
94
 
95
  mf_transcribe = gr.Interface(
96
  fn=transcribe,
 
143
  with demo:
144
  gr.TabbedInterface([mf_transcribe, file_transcribe, yt_transcribe], ["Microphone", "Audio file", "YouTube"])
145
 
146
+ demo.queue().launch(ssr_mode=False)
147