ashish0209
commited on
Commit
•
ed02a85
1
Parent(s):
a422160
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def transcribe(audio_file, model):
|
|
45 |
)
|
46 |
|
47 |
# Prepare JSON output
|
48 |
-
transcript = [ts.translate_text(
|
49 |
print(f"Time Taken to transcribe: {time() - start}")
|
50 |
print(transcript)
|
51 |
output = transcript
|
|
|
45 |
)
|
46 |
|
47 |
# Prepare JSON output
|
48 |
+
transcript = [ts.translate_text(segemnt.text) for segment in segments]
|
49 |
print(f"Time Taken to transcribe: {time() - start}")
|
50 |
print(transcript)
|
51 |
output = transcript
|