kevinwang676 commited on
Commit
cd009bb
1 Parent(s): 8a68b37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -18,6 +18,9 @@ import torch
18
  import librosa
19
  import util
20
 
 
 
 
21
  import matplotlib.pyplot as plt
22
  from PIL import Image, ImageDraw, ImageFont
23
  from moviepy.editor import *
@@ -93,7 +96,7 @@ for model_name in config_json.get('models'):
93
  net_g = net_g.half() if util.is_half(device) else net_g.float()
94
 
95
  vc = VC(tgt_sr, config)
96
-
97
  loaded_models.append(dict(
98
  name=model_name,
99
  metadata=model_info,
 
18
  import librosa
19
  import util
20
 
21
+ from config import Config
22
+ config = Config()
23
+
24
  import matplotlib.pyplot as plt
25
  from PIL import Image, ImageDraw, ImageFont
26
  from moviepy.editor import *
 
96
  net_g = net_g.half() if util.is_half(device) else net_g.float()
97
 
98
  vc = VC(tgt_sr, config)
99
+
100
  loaded_models.append(dict(
101
  name=model_name,
102
  metadata=model_info,