marquesafonso commited on
Commit
e8a080e
·
verified ·
1 Parent(s): 1ae9511

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -19
app.py CHANGED
@@ -1,25 +1,7 @@
1
  import gradio as gr
2
  from src.transcriber import transcriber
3
 
4
- def main():
5
-
6
- audio_chunked = gr.Interface(
7
- fn=transcribe_chunked_audio,
8
- inputs=[
9
- gr.Audio(sources=["upload"], label="Audio file", type="filepath"),
10
- gr.Radio(["transcribe", "translate"], label="Task", value="transcribe"),
11
- gr.Checkbox(value=False, label="Return timestamps"),
12
- ],
13
- outputs=[
14
- gr.Textbox(label="Transcription", show_copy_button=True),
15
- gr.Textbox(label="Transcription Time (s)"),
16
- ],
17
- allow_flagging="never",
18
- title=title,
19
- description=description,
20
- article=article,
21
- )
22
-
23
  with gr.Blocks(title='multilang-asr-transcriber', delete_cache=(86400, 86400), theme=gr.themes.Base()) as demo:
24
  gr.Markdown('## Multilang ASR Transcriber')
25
  gr.Markdown('An automatic speech recognition tool using [faster-whisper](https://github.com/SYSTRAN/faster-whisper). Supports multilingual video transcription and translation to english. Users may set the max words per line.')
 
1
  import gradio as gr
2
  from src.transcriber import transcriber
3
 
4
+ def main():
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  with gr.Blocks(title='multilang-asr-transcriber', delete_cache=(86400, 86400), theme=gr.themes.Base()) as demo:
6
  gr.Markdown('## Multilang ASR Transcriber')
7
  gr.Markdown('An automatic speech recognition tool using [faster-whisper](https://github.com/SYSTRAN/faster-whisper). Supports multilingual video transcription and translation to english. Users may set the max words per line.')