Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ def transcribe(audio):
|
|
9 |
transcribed = p(audio, chunk_length_s=10, stride_length_s=(4, 2))["text"].lower()
|
10 |
transcribed_corrected = ttp(re.sub("[^a-zA-Z0-9öäüÖÄÜ ]", " ",transcribed))[0]["generated_text"]
|
11 |
|
12 |
-
return
|
13 |
|
14 |
gr.Interface(
|
15 |
fn=transcribe,
|
|
|
9 |
transcribed = p(audio, chunk_length_s=10, stride_length_s=(4, 2))["text"].lower()
|
10 |
transcribed_corrected = ttp(re.sub("[^a-zA-Z0-9öäüÖÄÜ ]", " ",transcribed))[0]["generated_text"]
|
11 |
|
12 |
+
return transcribed_corrected
|
13 |
|
14 |
gr.Interface(
|
15 |
fn=transcribe,
|