ruslanmv commited on
Commit
053de85
·
verified ·
1 Parent(s): a63a888

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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