Update app.py
Browse files
app.py
CHANGED
@@ -1,21 +1,8 @@
|
|
1 |
import os
|
2 |
import sys
|
3 |
-
os.system("pip install transformers==4.27.0")
|
4 |
-
os.system("pip install torch")
|
5 |
-
os.system("pip install openai")
|
6 |
-
os.system("pip install accelerate")
|
7 |
from transformers import pipeline, WhisperModel, WhisperTokenizer, WhisperFeatureExtractor, AutoFeatureExtractor, AutoProcessor, WhisperConfig
|
8 |
-
os.system("pip install evaluate")
|
9 |
-
#import evaluate
|
10 |
-
#os.system("pip install evaluate[evaluator]")
|
11 |
-
os.system("pip install datasets")
|
12 |
-
# os.system("pip install llvmlite")
|
13 |
-
os.system("pip install spicy==1.8.1")
|
14 |
-
os.system("pip install soundfile")
|
15 |
os.system("pip install jiwer")
|
16 |
os.system("pip install datasets[audio]")
|
17 |
-
os.system("pip install numba==0.51.2")
|
18 |
-
import torch
|
19 |
from evaluate import evaluator
|
20 |
from datasets import load_dataset, Audio, disable_caching, set_caching_enabled
|
21 |
|
|
|
1 |
import os
|
2 |
import sys
|
|
|
|
|
|
|
|
|
3 |
from transformers import pipeline, WhisperModel, WhisperTokenizer, WhisperFeatureExtractor, AutoFeatureExtractor, AutoProcessor, WhisperConfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
os.system("pip install jiwer")
|
5 |
os.system("pip install datasets[audio]")
|
|
|
|
|
6 |
from evaluate import evaluator
|
7 |
from datasets import load_dataset, Audio, disable_caching, set_caching_enabled
|
8 |
|