csukuangfj commited on
Commit
4360bb8
1 Parent(s): 02fbaf9

use the latest sdk

Browse files
Files changed (2) hide show
  1. README.md +3 -3
  2. app.py +1 -2
README.md CHANGED
@@ -1,10 +1,10 @@
1
  ---
2
  title: Generate subtitles
3
- emoji: 🌖
4
  colorFrom: yellow
5
- colorTo: green
6
  sdk: gradio
7
- sdk_version: 3.48.0
8
  python_version: 3.8.9
9
  app_file: app.py
10
  pinned: false
 
1
  ---
2
  title: Generate subtitles
3
+ emoji: 🌍
4
  colorFrom: yellow
5
+ colorTo: pink
6
  sdk: gradio
7
+ sdk_version: 4.14.0
8
  python_version: 3.8.9
9
  app_file: app.py
10
  pinned: false
app.py CHANGED
@@ -185,9 +185,8 @@ with demo:
185
 
186
  with gr.TabItem("Upload audio from disk"):
187
  uploaded_audio_file = gr.Audio(
188
- source="upload", # Choose between "microphone", "upload"
189
  type="filepath",
190
- optional=False,
191
  label="Upload audio from disk",
192
  )
193
  upload_audio_button = gr.Button("Submit for recognition")
 
185
 
186
  with gr.TabItem("Upload audio from disk"):
187
  uploaded_audio_file = gr.Audio(
188
+ sources=["upload"], # Choose between "microphone", "upload"
189
  type="filepath",
 
190
  label="Upload audio from disk",
191
  )
192
  upload_audio_button = gr.Button("Submit for recognition")