Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def asr_pipe(input_file, input_file_microphone, chunks):
|
|
37 |
transcription = pipe(input_file, chunk_length_s= chunks)["text"]
|
38 |
|
39 |
# Save the transcription to a text file
|
40 |
-
with open("transcription.txt", "w") as f:
|
41 |
f.write(transcription)
|
42 |
|
43 |
# Save the sound file
|
@@ -52,7 +52,7 @@ inputs = [gr.inputs.Audio(source="upload", type='filepath', label="Eng Audio-Dat
|
|
52 |
|
53 |
outputs = [gr.outputs.Textbox(label="Erkannten Text")]
|
54 |
|
55 |
-
samples = [["Chamber2022_1.wav", "Chamber2022_1.wav",
|
56 |
|
57 |
gr.Interface(fn = asr_pipe,
|
58 |
inputs = inputs,
|
|
|
37 |
transcription = pipe(input_file, chunk_length_s= chunks)["text"]
|
38 |
|
39 |
# Save the transcription to a text file
|
40 |
+
with open("./transcription.txt", "w") as f:
|
41 |
f.write(transcription)
|
42 |
|
43 |
# Save the sound file
|
|
|
52 |
|
53 |
outputs = [gr.outputs.Textbox(label="Erkannten Text")]
|
54 |
|
55 |
+
samples = [["Chamber2022_1.wav", "Chamber2022_1.wav", 8], ["Chamber2022_2.wav", "Chamber2022_2.wav", 8], ["Chamber2022_3.wav", "Chamber2022_3.wav", 8], ["Erlieft-a-Verzielt.wav", "Erlieft-a-Verzielt.wav", 8]]
|
56 |
|
57 |
gr.Interface(fn = asr_pipe,
|
58 |
inputs = inputs,
|