Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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)
|