Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -16,6 +16,11 @@ os.environ["COQUI_TOS_AGREED"] = "1"
|
|
16 |
# NOTE: for streaming will require gradio audio streaming fix
|
17 |
# pip install --upgrade -y gradio==0.50.2 git+https://github.com/gorkemgoknar/gradio.git@patch-1
|
18 |
|
|
|
|
|
|
|
|
|
|
|
19 |
import textwrap
|
20 |
from scipy.io.wavfile import write
|
21 |
from pydub import AudioSegment
|
|
|
16 |
# NOTE: for streaming will require gradio audio streaming fix
|
17 |
# pip install --upgrade -y gradio==0.50.2 git+https://github.com/gorkemgoknar/gradio.git@patch-1
|
18 |
|
19 |
+
#Now you’re ready to install 🤗 Transformers with the following command:
|
20 |
+
if not is_gpu:
|
21 |
+
#For CPU-support only, Transformers and PyTorch with:
|
22 |
+
os.system('pip install transformers[torch]')
|
23 |
+
#pip install 'transformers[tf-cpu]' #Transformers and TensorFlow 2.0:
|
24 |
import textwrap
|
25 |
from scipy.io.wavfile import write
|
26 |
from pydub import AudioSegment
|