JacobLinCool commited on
Commit
28cee66
·
1 Parent(s): 921a996

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -48,7 +48,7 @@ def preprocess(zip_file: str) -> str:
48
  return temp_dir, f"Preprocessed {len(audio_files)} audio files.\n{log}"
49
 
50
 
51
- @zero(duration=120)
52
  def extract_features(exp_dir: str) -> str:
53
  err = None
54
  fi = FeatureInput(exp_dir)
@@ -141,6 +141,7 @@ def train_model(exp_dir: str) -> str:
141
  train(exp_dir)
142
 
143
  models = glob(f"{exp_dir}/G_*.pth")
 
144
  if not models:
145
  raise gr.Error("No model found")
146
 
 
48
  return temp_dir, f"Preprocessed {len(audio_files)} audio files.\n{log}"
49
 
50
 
51
+ @zero(duration=300)
52
  def extract_features(exp_dir: str) -> str:
53
  err = None
54
  fi = FeatureInput(exp_dir)
 
141
  train(exp_dir)
142
 
143
  models = glob(f"{exp_dir}/G_*.pth")
144
+ print(models)
145
  if not models:
146
  raise gr.Error("No model found")
147