Daniel Tse
commited on
Commit
·
904e753
1
Parent(s):
7117743
Remove chunking.
Browse files
app.py
CHANGED
|
@@ -20,11 +20,6 @@ def transcribe_audio(audiofile):
|
|
| 20 |
podcast_duration = podcast.duration_seconds
|
| 21 |
print(f"Audio Duration: {podcast_duration}")
|
| 22 |
|
| 23 |
-
st.info('Breaking podcast into 5 minute chunks.')
|
| 24 |
-
#break into 5 minute chunks
|
| 25 |
-
chunk_length_five_minutes = 5 * 60 * 1000
|
| 26 |
-
podcast_chunks = podcast[::chunk_length_five_minutes]
|
| 27 |
-
|
| 28 |
st.info('Transcribing...')
|
| 29 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
| 30 |
|
|
|
|
| 20 |
podcast_duration = podcast.duration_seconds
|
| 21 |
print(f"Audio Duration: {podcast_duration}")
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
st.info('Transcribing...')
|
| 24 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
| 25 |
|