Spaces:
Runtime error
Runtime error
fix timing
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def call_pitch(pitch,progress=gr.Progress()):
|
|
48 |
final_call = classify_pitch(output)
|
49 |
|
50 |
differential = time.time() - start
|
51 |
-
wait_time = (int(video_length-(
|
52 |
for _ in progress.tqdm(range(wait_time)): #wait until the video is done to return the call and go 5 frames early to seem speedy
|
53 |
time.sleep(0.1)
|
54 |
|
|
|
48 |
final_call = classify_pitch(output)
|
49 |
|
50 |
differential = time.time() - start
|
51 |
+
wait_time = (int(video_length-(10+differential))//15)*10
|
52 |
for _ in progress.tqdm(range(wait_time)): #wait until the video is done to return the call and go 5 frames early to seem speedy
|
53 |
time.sleep(0.1)
|
54 |
|