khof312 commited on
Commit
436344f
·
1 Parent(s): 028db54

Remove supplied token.

Browse files
Files changed (1) hide show
  1. src/synthesize.py +2 -1
src/synthesize.py CHANGED
@@ -29,7 +29,8 @@ def synth_mms(text:str, model:str):
29
  # raw_response=True)._content
30
 
31
  if model is not None:
32
- pipe = pipeline("text-to-speech", model=model, device=-1, token=os.environ['TOKEN']) # Change device if it should use GPU
 
33
  mms_tts = pipe(text)
34
  return mms_tts['audio'], mms_tts['sampling_rate']
35
  else:
 
29
  # raw_response=True)._content
30
 
31
  if model is not None:
32
+ pipe = pipeline("text-to-speech", model=model, device=-1, #token=os.environ['TOKEN']
33
+ ) # Change device if it should use GPU
34
  mms_tts = pipe(text)
35
  return mms_tts['audio'], mms_tts['sampling_rate']
36
  else: