camparchimedes commited on
Commit
cb42a20
·
verified ·
1 Parent(s): f073aa8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -65,7 +65,7 @@ def convert_to_wav(audio_file):
65
  return wav_file
66
 
67
 
68
- @spaces.GPU(duration=300, queue=False)
69
  def transcribe_audio(audio_file, batch_size=4):
70
  start_time = time.time()
71
  # Convert .m4a to .wav
@@ -151,7 +151,7 @@ iface = gr.Blocks()
151
 
152
  with iface:
153
  gr.HTML(image_html)
154
- gr.Markdown("# Drag-n-drop audio for transcription")
155
  audio_input = gr.Audio(type="filepath")
156
  batch_size_input = gr.Slider(minimum=7, maximum=16, step=1, label="Batch Size")
157
  transcription_output = gr.Textbox(label="Transcription | nb-whisper-large-semantic")
 
65
  return wav_file
66
 
67
 
68
+ # @spaces.GPU(duration=300, queue=False)
69
  def transcribe_audio(audio_file, batch_size=4):
70
  start_time = time.time()
71
  # Convert .m4a to .wav
 
151
 
152
  with iface:
153
  gr.HTML(image_html)
154
+ gr.Markdown("# Vi har muligheten til å oversette lydfiler til norsk skrift. Denne fungerer på norsk og oversetter norsk tale til tekst.")
155
  audio_input = gr.Audio(type="filepath")
156
  batch_size_input = gr.Slider(minimum=7, maximum=16, step=1, label="Batch Size")
157
  transcription_output = gr.Textbox(label="Transcription | nb-whisper-large-semantic")