dayngerous commited on
Commit
f1274ac
·
1 Parent(s): 00bd3b6

Fix no result

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -715,6 +715,13 @@ def verify(
715
  loaded["pair_head_loaded"],
716
  )
717
 
 
 
 
 
 
 
 
718
  wfig = _plot_waveforms(track_clip, source_clip, track_regions, source_regions, best_score, matched)
719
  mfig = _plot_mels(track_clip, source_clip, track_regions, source_regions, matched)
720
 
 
715
  loaded["pair_head_loaded"],
716
  )
717
 
718
+ if not track_regions or not source_regions:
719
+ matched = False
720
+ track_regions = []
721
+ source_regions = []
722
+ if not note:
723
+ note = "Localization was inconclusive, so the result is treated as no match."
724
+
725
  wfig = _plot_waveforms(track_clip, source_clip, track_regions, source_regions, best_score, matched)
726
  mfig = _plot_mels(track_clip, source_clip, track_regions, source_regions, matched)
727