Spaces:
Build error
Build error
Update app.py
Browse files
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("#
|
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 nå 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")
|