Spaces:
Running
Running
anderbogia
commited on
Commit
·
ff7976e
1
Parent(s):
5003469
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,9 @@ 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 |
-
os.system("curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh")
|
7 |
|
8 |
import gradio as gr
|
9 |
from transformers import pipeline, Wav2Vec2ForCTC, AutoProcessor
|
|
|
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 --upgrade pip")
|
6 |
os.system("pip install transformers==3.4.0") #Some interoperability issue with Wav2Vec2CTCTokenizer
|
7 |
+
#os.system("curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh")
|
8 |
|
9 |
import gradio as gr
|
10 |
from transformers import pipeline, Wav2Vec2ForCTC, AutoProcessor
|