flozi00 commited on
Commit
dad77b7
·
1 Parent(s): 18e36a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 transcribed + "\n" + transcribed_corrected
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,