Spaces:
Running
Running
Commit
·
7f8ff45
1
Parent(s):
4a9cfe8
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
import os
|
2 |
os.system("pip install numpy==1.23.0") #NumPy 1.24 or less needed by Numba. Use 1.23, librosa still uses np.complex which was dropped in NumPy 1.24
|
3 |
os.system("pip install git+https://github.com/huggingface/transformers datasets[torch]")
|
4 |
-
os.system("pip install torch accelerate torchaudio datasets librosa easymms
|
|
|
5 |
|
6 |
import gradio as gr
|
7 |
from transformers import pipeline, Wav2Vec2ForCTC, AutoProcessor
|
|
|
1 |
import os
|
2 |
os.system("pip install numpy==1.23.0") #NumPy 1.24 or less needed by Numba. Use 1.23, librosa still uses np.complex which was dropped in NumPy 1.24
|
3 |
os.system("pip install git+https://github.com/huggingface/transformers datasets[torch]")
|
4 |
+
os.system("pip install torch accelerate torchaudio datasets librosa easymms")
|
5 |
+
os.system("pip install transformers==3.4.0") #Some interoperability issue with Wav2Vec2CTCTokenizer
|
6 |
|
7 |
import gradio as gr
|
8 |
from transformers import pipeline, Wav2Vec2ForCTC, AutoProcessor
|