Loren commited on
Commit
e2eb7cb
·
verified ·
1 Parent(s): 52a6261

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -89,7 +89,7 @@ with gr.Blocks(title="Transcription") as audio:
89
  gr.Markdown("#### Choose the language of the audio and set an audio file to process it.")
90
  gr.Markdown("##### *(Voxtral handles audios up to 30 minutes for transcription)*")
91
 
92
- with gr.Row():
93
  with gr.Column():
94
  sel_language = gr.Dropdown(
95
  choices=list(dict_languages.keys()),
@@ -111,7 +111,7 @@ with gr.Blocks(title="Transcription") as audio:
111
  run_on_click=False
112
  )
113
 
114
- with gr.Row():
115
  with gr.Column():
116
  submit_transcript = gr.Button("Extract transcription", variant="primary")
117
  text_transcript = gr.Textbox(label="Generated transcription", lines=10)
@@ -153,7 +153,7 @@ with gr.Blocks(title="Transcription") as audio:
153
  trigger_mode="once",
154
  ).then(
155
  fn=process_transcript,
156
- inputs=[sel_language, sel_audio],
157
  outputs=text_transcript
158
  ).then(
159
  enable_buttons,
 
89
  gr.Markdown("#### Choose the language of the audio and set an audio file to process it.")
90
  gr.Markdown("##### *(Voxtral handles audios up to 30 minutes for transcription)*")
91
 
92
+ with gr.Row(overflow="scroll"):
93
  with gr.Column():
94
  sel_language = gr.Dropdown(
95
  choices=list(dict_languages.keys()),
 
111
  run_on_click=False
112
  )
113
 
114
+ with gr.Row(overflow="scroll"):
115
  with gr.Column():
116
  submit_transcript = gr.Button("Extract transcription", variant="primary")
117
  text_transcript = gr.Textbox(label="Generated transcription", lines=10)
 
153
  trigger_mode="once",
154
  ).then(
155
  fn=process_transcript,
156
+ inputs=[sel_translate_language, sel_audio],
157
  outputs=text_transcript
158
  ).then(
159
  enable_buttons,