๐Ÿšฉ Report: Not working

#1
by Gertie01 - opened

andler = Examples(
File "/home/user/.local/lib/python3.8/site-packages/gradio/examples.py", line 62, in create_examples
utils.synchronize_async(examples_obj.create)
File "/home/user/.local/lib/python3.8/site-packages/gradio/utils.py", line 356, in synchronize_async
return fsspec.asyn.sync(fsspec.asyn.get_loop(), func, *args, **kwargs)
File "/home/user/.local/lib/python3.8/site-packages/fsspec/asyn.py", line 106, in sync
raise return_result
File "/home/user/.local/lib/python3.8/site-packages/fsspec/asyn.py", line 61, in _runner
result[0] = await coro
File "/home/user/.local/lib/python3.8/site-packages/gradio/examples.py", line 231, in create
await self.cache_interface_examples()
File "/home/user/.local/lib/python3.8/site-packages/gradio/examples.py", line 269, in cache_interface_examples
prediction = await self.predict_example(example_id)
File "/home/user/.local/lib/python3.8/site-packages/gradio/examples.py", line 286, in predict_example
predictions = await anyio.to_thread.run_sync(self.fn, *processed_input)
File "/home/user/.local/lib/python3.8/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/home/user/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/home/user/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "app.py", line 149, in run_inference
title, thumb, skip_frames, path_frames= vid2frames(url,sampling_interval)
File "app.py", line 111, in vid2frames
fps, video, thumb, title = download_video(url)
File "app.py", line 60, in download_video
format, format_id, fps = select_video_format(url)
File "app.py", line 28, in select_video_format
formats = [f for f in formats if f['ext'] == ext
File "app.py", line 30, in
and f['filesize'] is not None and f['filesize'] <= max_size]
KeyError: 'filesize'

Sign up or log in to comment