You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Lerobot) robot@chase:~$ pdf2zh -i
(…)ayout_yolo_docstructbench_imgsz1024.onnx: 100%|█| 75.3M/75.3M [00:47<00:00, 1
Running on local URL: http://0.0.0.0:7860
To create a public link, set `share=True` in `launch()`.
Traceback (most recent call last):
File "/home/robot/.conda/envs/Lerobot/lib/python3.9/site-packages/gradio/queueing.py", line 536, in process_events
response = await route_utils.call_process_api(
File "/home/robot/.conda/envs/Lerobot/lib/python3.9/site-packages/gradio/route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "/home/robot/.conda/envs/Lerobot/lib/python3.9/site-packages/gradio/blocks.py", line 1935, in process_api
result = await self.call_function(
File "/home/robot/.conda/envs/Lerobot/lib/python3.9/site-packages/gradio/blocks.py", line 1520, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
File "/home/robot/.conda/envs/Lerobot/lib/python3.9/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/home/robot/.conda/envs/Lerobot/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 2461, in run_sync_in_worker_thread
return await future
File "/home/robot/.conda/envs/Lerobot/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 962, in run
result = context.run(func, *args)
File "/home/robot/.conda/envs/Lerobot/lib/python3.9/site-packages/gradio/utils.py", line 826, in wrapper
response = f(*args, **kwargs)
File "/home/robot/.conda/envs/Lerobot/lib/python3.9/site-packages/pdf2zh/gui.py", line 213, in translate_file
cancellation_event_map[session_id] = asyncio.Event()
File "/home/robot/.conda/envs/Lerobot/lib/python3.9/asyncio/locks.py", line 177, in __init__
self._loop = events.get_event_loop()
File "/home/robot/.conda/envs/Lerobot/lib/python3.9/asyncio/events.py", line 642, in get_event_loop
raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'AnyIO worker thread'.
你好,请问这该如何解决呢?谢谢。
这是我的pdf文档:
Lerobot.pdf
The text was updated successfully, but these errors were encountered: