Nephele commited on
Commit
67132e8
1 Parent(s): a0ee6d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -59,10 +59,9 @@ def infer(text, sdp_ratio, noise_scale, noise_scale_w, length_scale, sid, model_
59
  del x_tst, tones, lang_ids, bert, x_tst_lengths, speakers
60
  sf.write("tmp.wav", audio, 44100)
61
  return audio
62
- tz = pytz.timezone('Asia/Shanghai')
63
 
64
  def convert_wav_to_mp3(wav_file):
65
- global tz
66
  now = datetime.now(tz).strftime('%m%d%H%M%S')
67
  os.makedirs('out', exist_ok=True)
68
  output_path_mp3 = os.path.join('out', f"{now}.mp3")
 
59
  del x_tst, tones, lang_ids, bert, x_tst_lengths, speakers
60
  sf.write("tmp.wav", audio, 44100)
61
  return audio
 
62
 
63
  def convert_wav_to_mp3(wav_file):
64
+ tz = pytz.timezone('Asia/Shanghai')
65
  now = datetime.now(tz).strftime('%m%d%H%M%S')
66
  os.makedirs('out', exist_ok=True)
67
  output_path_mp3 = os.path.join('out', f"{now}.mp3")