Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modelscope_Faster_Whisper_Multi_Subtitle/output/video.srt #17

Open
lipingle opened this issue Nov 9, 2024 · 1 comment
Open

Modelscope_Faster_Whisper_Multi_Subtitle/output/video.srt #17

lipingle opened this issue Nov 9, 2024 · 1 comment

Comments

@lipingle
Copy link

lipingle commented Nov 9, 2024

Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/gradio/routes.py", line 412, in run_predict
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1299, in process_api
result = await self.call_function(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1021, in call_function
prediction = await anyio.to_thread.run_sync(
File "/usr/local/lib/python3.10/dist-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 2177, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 859, in run
result = context.run(func, *args)
File "/home/video/Modelscope_Faster_Whisper_Multi_Subtitle/app.py", line 61, in do_trans_en2zh_deep
return make_tran_deep(srt_path,"EN","ZH")
File "/home/video/Modelscope_Faster_Whisper_Multi_Subtitle/utils.py", line 309, in make_tran_deep
with open(srt_path, 'r',encoding="utf-8") as file:
FileNotFoundError: [Errno 2] No such file or directory: '/home/video/Modelscope_Faster_Whisper_Multi_Subtitle/output/video.srt'

@lipingle
Copy link
Author

lipingle commented Nov 13, 2024

解决方式,手动创建就好

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant