Whisper-WebUI icon indicating copy to clipboard operation
Whisper-WebUI copied to clipboard

HTTP Error 400: Bad Request

Open Another5405 opened this issue 1 year ago • 6 comments

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]

Another5405 avatar Aug 16 '24 13:08 Another5405

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.

jhj0517 avatar Aug 17 '24 10:08 jhj0517

So am I. I installed Whisper WebUI through Pinokio. Already updated.

consecutiotemporum avatar Aug 31 '24 13:08 consecutiotemporum

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.

jhj0517 avatar Aug 31 '24 14:08 jhj0517

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.

Thanks. The problem is that Pinokio installation of Whisper-WebUI includes pytube, not pytubefix.

consecutiotemporum avatar Sep 01 '24 08:09 consecutiotemporum

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.

Thanks. The problem is that Pinokio installation of Whisper-WebUI includes pytube, not pytubefix.

Ok. Solved this way:

Changed the requirements.txt replacing pytube with pytubefix.

Screenshot 2024-09-01 102323

Then I changed the youtube_manager.py file replacing the call from pytube with pytubefix.

Screenshot 2024-09-01 102148

consecutiotemporum avatar Sep 01 '24 08:09 consecutiotemporum

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

jhj0517 avatar Sep 01 '24 10:09 jhj0517

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!

jhj0517 avatar Oct 15 '24 06:10 jhj0517