Shanuka01 commited on
Commit
3fd7ea6
·
1 Parent(s): 72d6a95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -30,7 +30,7 @@ mic_transcribe = gr.Interface(
30
  fn=transcribe_speech,
31
  inputs=gr.Audio(source="microphone", type="filepath"),
32
  outputs=gr.outputs.Textbox(),
33
- tilte=title, # Fixed typo (tilte -> title)
34
  description=description,
35
  )
36
 
@@ -38,7 +38,8 @@ file_transcribe = gr.Interface(
38
  fn=transcribe_speech,
39
  inputs=gr.Audio(source="upload", type="filepath"),
40
  outputs=gr.outputs.Textbox(),
41
- tilte=title, # Fixed typo (tilte -> title)
 
42
  description=description,
43
  )
44
 
@@ -48,4 +49,4 @@ with demo:
48
  ["Transcribe Microphone", "Transcribe Audio File"],
49
  ),
50
 
51
- demo.launch()
 
30
  fn=transcribe_speech,
31
  inputs=gr.Audio(source="microphone", type="filepath"),
32
  outputs=gr.outputs.Textbox(),
33
+ title=title, # Fixed typo (tilte -> title)
34
  description=description,
35
  )
36
 
 
38
  fn=transcribe_speech,
39
  inputs=gr.Audio(source="upload", type="filepath"),
40
  outputs=gr.outputs.Textbox(),
41
+ examples=[["./example.wav"]],
42
+ title=title, # Fixed typo (tilte -> title)
43
  description=description,
44
  )
45
 
 
49
  ["Transcribe Microphone", "Transcribe Audio File"],
50
  ),
51
 
52
+ demo.launch()