SamuelM0422 commited on
Commit
81fc105
·
verified ·
1 Parent(s): fd4a875

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
 
2
  import gradio as gr
3
  from transformers import pipeline
@@ -16,7 +17,7 @@ def transcribe_speech(filepath):
16
  'task': 'transcribe',
17
  'language': 'portuguese'
18
  },
19
- chunck_length_s=30,
20
  batch_size=8
21
  )
22
  return output['text']
@@ -49,4 +50,4 @@ with demo:
49
  title=title)
50
 
51
 
52
- demo.launch()
 
1
+ #%%writefile app.py
2
 
3
  import gradio as gr
4
  from transformers import pipeline
 
17
  'task': 'transcribe',
18
  'language': 'portuguese'
19
  },
20
+ chunk_length_s=30,
21
  batch_size=8
22
  )
23
  return output['text']
 
50
  title=title)
51
 
52
 
53
+ demo.launch(debug=True)