mrfakename commited on
Commit
7c9ab75
1 Parent(s): 73cbdc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -67,7 +67,7 @@ def serve_wav():
67
  noise = torch.randn(1,1,256).to('cuda' if torch.cuda.is_available() else 'cpu')
68
  for t in texts:
69
  # check for cache
70
- hash = hashlib.sha256(t.encode()).hexdigest()
71
  if os.path.exists(os.path.join(cache_dir, hash + '.wav')):
72
  audios.append(read(os.path.join(cache_dir, hash + '.wav'))[1])
73
  else:
 
67
  noise = torch.randn(1,1,256).to('cuda' if torch.cuda.is_available() else 'cpu')
68
  for t in texts:
69
  # check for cache
70
+ hash = hashlib.sha256(t.lower().encode()).hexdigest()
71
  if os.path.exists(os.path.join(cache_dir, hash + '.wav')):
72
  audios.append(read(os.path.join(cache_dir, hash + '.wav'))[1])
73
  else: