Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,9 +16,10 @@ def transcribe(audio):
|
|
16 |
|
17 |
@spaces.GPU
|
18 |
def correction(text):
|
19 |
-
corrected_text = ser(text)
|
20 |
-
|
21 |
-
|
|
|
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):
|