Commit
•
6941871
1
Parent(s):
b976e80
Update handler.py
Browse files- handler.py +2 -0
handler.py
CHANGED
@@ -226,7 +226,9 @@ class EndpointHandler:
|
|
226 |
raise ValueError(f"Expected tensor of shape [frames, channels, height, width], got shape {frames.shape}")
|
227 |
|
228 |
# Post-process frames
|
|
|
229 |
loop = asyncio.new_event_loop()
|
|
|
230 |
try:
|
231 |
video_uri, metadata = loop.run_until_complete(
|
232 |
self.process_frames(frames, config)
|
|
|
226 |
raise ValueError(f"Expected tensor of shape [frames, channels, height, width], got shape {frames.shape}")
|
227 |
|
228 |
# Post-process frames
|
229 |
+
|
230 |
loop = asyncio.new_event_loop()
|
231 |
+
|
232 |
try:
|
233 |
video_uri, metadata = loop.run_until_complete(
|
234 |
self.process_frames(frames, config)
|