ashish0209
commited on
Commit
•
05ec90c
1
Parent(s):
4526d54
Update app.py
Browse files
app.py
CHANGED
@@ -46,10 +46,8 @@ def transcribe(audio_file, model):
|
|
46 |
|
47 |
# Prepare JSON output
|
48 |
transcript = []
|
49 |
-
for segment in segments
|
50 |
-
|
51 |
-
x = ts.translate_text(x)
|
52 |
-
transcript.append(x)
|
53 |
|
54 |
|
55 |
print(f"Time Taken to transcribe: {time() - start}")
|
|
|
46 |
|
47 |
# Prepare JSON output
|
48 |
transcript = []
|
49 |
+
transcript = [segment.text for segment in segments]
|
50 |
+
|
|
|
|
|
51 |
|
52 |
|
53 |
print(f"Time Taken to transcribe: {time() - start}")
|