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

webui doesn't work #47

Open
DavidDah opened this issue Apr 29, 2023 · 3 comments
Open

webui doesn't work #47

DavidDah opened this issue Apr 29, 2023 · 3 comments
Labels
needs repro Need more information to reproduce the issue

Comments

@DavidDah
Copy link

When using transcribe or translation browser reports error and this is output from console:

Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch().
Traceback (most recent call last):
File "C:\Users\user\Downloads\autotranscribe\whisper-auto-transcribe\src\utils\task.py", line 108, in transcribe
subprocess.run(cmd, check=True)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1420, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\user\Downloads\autotranscribe\whisper-auto-transcribe\venv\lib\site-packages\gradio\routes.py", line 399, in run_predict
output = await app.get_blocks().process_api(
File "C:\Users\user\Downloads\autotranscribe\whisper-auto-transcribe\venv\lib\site-packages\gradio\blocks.py", line 1303, in process_api
result = await self.call_function(
File "C:\Users\user\Downloads\autotranscribe\whisper-auto-transcribe\venv\lib\site-packages\gradio\blocks.py", line 1026, in call_function
prediction = await anyio.to_thread.run_sync(
File "C:\Users\user\Downloads\autotranscribe\whisper-auto-transcribe\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "C:\Users\user\Downloads\autotranscribe\whisper-auto-transcribe\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "C:\Users\user\Downloads\autotranscribe\whisper-auto-transcribe\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "C:\Users\user\Downloads\autotranscribe\whisper-auto-transcribe\src\transcribe_gui.py", line 327, in handle_form_submit
subtitle_file_path = task.transcribe(
File "C:\Users\user\Downloads\autotranscribe\whisper-auto-transcribe\src\utils\task.py", line 110, in transcribe
raise Exception(
Exception: Error. Vocal extracter unavailable. Received:
C:\Users\user\AppData\Local\Temp\bebf2e05e25135efa50c8a746b06c2875e007655\IMG_5503.MP4, C:\Users\user\AppData\Local\Temp\tempfreesubtitle\main.MP4, C:\Users\user\AppData\Local\Temp
demucs --two-stems=vocals "C:\Users\user\AppData\Local\Temp\tempfreesubtitle\main.MP4" -o "C:\Users\user\AppData\Local\Temp" --filename "{stem}.{ext}"

@tomchang25 tomchang25 added the needs repro Need more information to reproduce the issue label Apr 29, 2023
@tomchang25
Copy link
Owner

Hi, @DavidDah. I can't reproduce the issue in the same filename.

  • How big is the file size?
  • Could you please check if the file C:\Users\user\AppData\Local\Temp\tempfreesubtitle\main.MP4 exists?
  • Additionally, could you check if the file C:\Users\user\AppData\Local\Temp\bebf2e05e25135efa50c8a746b06c2875e007655\IMG_5503.MP4 exists as well?"
  • Could you try renaming the original file, IMG_5503.MP4, to lowercase and then try again?

@mxgc
Copy link

mxgc commented Apr 30, 2023

I've run into the same problem as well Vocal extracter unavailable.

The error can be bypassed by setting vocal_extractor to False on Line 27 in src/util/task.py. (Of course this doesn't solve the underlying issue.)

It might be a good idea to add a new argument in cli.py, allowing user to set vocal_extractor status.

@matheus2740
Copy link

Same problem here, I bypassed it by disabling the vocal extractor as mxgc suggested, but I would like to have a better solution. Could this explain why my subtitles are not very well synced? or the vocal extractor is just a cleanup pass that doesn't interfere with syncing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Need more information to reproduce the issue
Projects
None yet
Development

No branches or pull requests

4 participants