IanRonk commited on
Commit
342e535
1 Parent(s): 5ae3a16

Add correct return

Browse files
Files changed (1) hide show
  1. app.py +11 -10
app.py CHANGED
@@ -18,16 +18,17 @@ def pipeline(video_url):
18
  classification, probs = predict_from_document(sentences)
19
  # return punctuated_text
20
  times, timestamps = match_mask_and_transcript(sentences, transcript, classification)
21
- return [
22
- {
23
- "start": "12:05",
24
- "end": "12:52",
25
- "classification": str(classification),
26
- "probabilities": probs,
27
- "times": times,
28
- "timestamps": timestamps,
29
- }
30
- ]
 
31
 
32
 
33
  # print(pipeline("VL5M5ZihJK4"))
 
18
  classification, probs = predict_from_document(sentences)
19
  # return punctuated_text
20
  times, timestamps = match_mask_and_transcript(sentences, transcript, classification)
21
+ return [{"begin": time[0], "end": time[1]} for time in times]
22
+ # return [
23
+ # {
24
+ # "start": "12:05",
25
+ # "end": "12:52",
26
+ # "classification": str(classification),
27
+ # "probabilities": probs,
28
+ # "times": times,
29
+ # "timestamps": timestamps,
30
+ # }
31
+ # ]
32
 
33
 
34
  # print(pipeline("VL5M5ZihJK4"))