helloWorld199 commited on
Commit
a07c1a6
1 Parent(s): a75f7e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -65,7 +65,7 @@ model, utils = torch.hub.load(repo_or_dir='snakers4/silero-vad',
65
  def analyze(path):
66
  #Measure time for inference
67
  start = time.time()
68
-
69
  path = Path(path)
70
  result= allin1.analyze(
71
  path,
@@ -80,7 +80,7 @@ def analyze(path):
80
  json_structure_output = os.path.join(root, file_path)
81
  print(json_structure_output)
82
 
83
- add_voice_label(json_structure_output, path)
84
 
85
  fig = allin1.visualize(
86
  result,
 
65
  def analyze(path):
66
  #Measure time for inference
67
  start = time.time()
68
+ string_path = path
69
  path = Path(path)
70
  result= allin1.analyze(
71
  path,
 
80
  json_structure_output = os.path.join(root, file_path)
81
  print(json_structure_output)
82
 
83
+ add_voice_label(json_structure_output, string_path)
84
 
85
  fig = allin1.visualize(
86
  result,