Whisper-WebUI
Whisper-WebUI copied to clipboard
HTTP Error 400: Bad Request
Which OS are you using? Window11
My copy was works in few month ago, but now process with bug and I don know why.
Error transcribing file on line HTTP Error 400: Bad Request Traceback (most recent call last): File "C:\App\Whisper-WebUI-master\venv\lib\site-packages\gradio\queueing.py", line 495, in call_prediction output = await route_utils.call_process_api( File "C:\App\Whisper-WebUI-master\venv\lib\site-packages\gradio\route_utils.py", line 232, in call_process_api output = await app.get_blocks().process_api( File "C:\App\Whisper-WebUI-master\venv\lib\site-packages\gradio\blocks.py", line 1570, in process_api data = self.postprocess_data(fn_index, result["prediction"], state) File "C:\App\Whisper-WebUI-master\venv\lib\site-packages\gradio\blocks.py", line 1397, in postprocess_data self.validate_outputs(fn_index, predictions) # type: ignore File "C:\App\Whisper-WebUI-master\venv\lib\site-packages\gradio\blocks.py", line 1371, in validate_outputs raise ValueError( ValueError: An event handler (transcribe_youtube) didn't receive enough output values (needed: 2, received: 1). Wanted outputs: [textbox, file] Received outputs: [None]
Hi @Another5405. It seems that there was an problem with the YouTube API server, I can't reproduce the error now.
Are you still experiencing the same error?
If you're using the older version of this web ui, I would recommend updating to the latest version, as I've recently updated pytube to pytubefix.
So am I. I installed Whisper WebUI through Pinokio. Already updated.
This bug occurs whenever youtube updates something in the frontend.
The bug is handled by pytubefix, so you should update pytubefix whenever this kind of bug happens.
pip install -U pytubefix
I just tested it and it works fine with the latest version of pytubefix.
The bug is handled by pytubefix, so you should update pytubefix whenever this kind of bug happens.
pip install -U pytubefixI just tested it and it works fine with the latest version of
pytubefix.
Thanks.
The problem is that Pinokio installation of Whisper-WebUI includes pytube, not pytubefix.
The bug is handled by
pytubefix, so you should updatepytubefixwhenever this kind of bug happens.pip install -U pytubefixI just tested it and it works fine with the latest version of
pytubefix.Thanks. The problem is that Pinokio installation of Whisper-WebUI includes
pytube, notpytubefix.
Ok. Solved this way:
Changed the requirements.txt replacing pytube with pytubefix.
Then I changed the youtube_manager.py file replacing the call from pytube with pytubefix.
I've never heard of Pinokio before, but I just raised the issue to update the webui - https://github.com/cocktailpeanut/whisper-webui.pinokio/issues/5
This is because of an older version of the web ui, it should now work fine if you reinstall the app in pinokio.
Closing this thread, please feel free to reopen it if you encounter the same bug!