Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ from pydub import AudioSegment
|
|
12 |
import torch
|
13 |
from transformers import pipeline
|
14 |
from huggingface_hub import model_info
|
15 |
-
import
|
16 |
#import nltk
|
17 |
#from nltk.tokenize import word_tokenize
|
18 |
#from nltk.corpus import stopwords
|
@@ -101,7 +101,7 @@ def transcribe_audio(audio_file):
|
|
101 |
f"Number of words: {len(text.split())}\n\n"
|
102 |
"Real-time Factor (RTF) is a measure often used to evaluate the speed of speech recognition systems. "
|
103 |
"It is the ratio of transcription time to the duration of the audio.\n\n"
|
104 |
-
"An RTF of less than 1 means the transcription process is faster than real-time
|
105 |
)
|
106 |
|
107 |
# result = f"Time taken: {output_time:.2f} seconds\nNumber of words: {len(text.split())}"
|
|
|
12 |
import torch
|
13 |
from transformers import pipeline
|
14 |
from huggingface_hub import model_info
|
15 |
+
import spacy
|
16 |
#import nltk
|
17 |
#from nltk.tokenize import word_tokenize
|
18 |
#from nltk.corpus import stopwords
|
|
|
101 |
f"Number of words: {len(text.split())}\n\n"
|
102 |
"Real-time Factor (RTF) is a measure often used to evaluate the speed of speech recognition systems. "
|
103 |
"It is the ratio of transcription time to the duration of the audio.\n\n"
|
104 |
+
"An RTF of less than 1 means the transcription process is faster than real-time."
|
105 |
)
|
106 |
|
107 |
# result = f"Time taken: {output_time:.2f} seconds\nNumber of words: {len(text.split())}"
|