Suprath commited on
Commit
47e6580
·
verified ·
1 Parent(s): 7b6cd70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,5 +1,7 @@
1
  import os
2
  import sys
 
 
3
 
4
  os.system('git clone https://github.com/facebookresearch/av_hubert.git')
5
  os.chdir('/home/user/app/av_hubert')
@@ -116,7 +118,7 @@ def predict_and_save(process_video):
116
 
117
  # Collect timestamps and texts
118
  transcript = []
119
- for i, (start, end) in enumerate(sample['net_input']['video_lengths'], 1):
120
  start_time = float(start) / 16_000
121
  end_time = float(end) / 16_000
122
  text = hypo[i].strip()
 
1
  import os
2
  import sys
3
+ import json
4
+
5
 
6
  os.system('git clone https://github.com/facebookresearch/av_hubert.git')
7
  os.chdir('/home/user/app/av_hubert')
 
118
 
119
  # Collect timestamps and texts
120
  transcript = []
121
+ for i, (start, end) in enumerate(sample['net_input']['audio_lengths'], 1):
122
  start_time = float(start) / 16_000
123
  end_time = float(end) / 16_000
124
  text = hypo[i].strip()