Daniel Tse
commited on
Commit
•
d56b55d
1
Parent(s):
d1ef5e9
Add sent_tokenize import
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ import os
|
|
4 |
import torch
|
5 |
from transformers import pipeline, AutoTokenizer, AutoModelForSequenceClassification, AutoModelForTokenClassification, AutoModelForSeq2SeqLM
|
6 |
from pydub import AudioSegment
|
|
|
7 |
|
8 |
def transcribe_audio(audiofile):
|
9 |
|
|
|
4 |
import torch
|
5 |
from transformers import pipeline, AutoTokenizer, AutoModelForSequenceClassification, AutoModelForTokenClassification, AutoModelForSeq2SeqLM
|
6 |
from pydub import AudioSegment
|
7 |
+
from nltk import sent_tokenize
|
8 |
|
9 |
def transcribe_audio(audiofile):
|
10 |
|