asif00 commited on
Commit
cd18f8b
1 Parent(s): 7db76c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -16,9 +16,10 @@ def transcribe(audio):
16
 
17
  @spaces.GPU
18
  def correction(text):
19
- corrected_text = ser(text)
20
- print(corrected_text["generated_text"])
21
- return corrected_text["generated_text"]
 
22
 
23
 
24
  def transcribe_and_correct(audio):
 
16
 
17
  @spaces.GPU
18
  def correction(text):
19
+ corrected_text = ser(text)[0]["generated_text"]
20
+
21
+ print(corrected_text)
22
+ return corrected_text
23
 
24
 
25
  def transcribe_and_correct(audio):