Times out after 5-6 seconds on Google Colab and Paperspace

#6
by Kagerage - opened

Using your notebook, pointing to either this repo or the default whisper-webui repo, everything works as expected, except that if the whole process of transcribing/translating takes more than 6 seconds, then it throws an error, one that I cannot get any useful info from, no matter what. Even weirder, same thing happens running the same .ipynb in Paperspace. Weirder than that, installing and running it locally with conda (Not Jupyter) works just fine, and it doesn't time out at all, on either the local or share url. I've tried every browser on my system, those being Brave, Edge, Firefox, and Falkon, and they all act the exact same way.

BIG UPDATE

For some reason, adding !pip install --upgrade httpx fixed the issue completely, presumably because what Colab/Paperspace ship is a version with some sort of regression related to how timeouts are handled. This would need to be added to your notebook, or to the requirements.txt to make sure this is at a version newer than or equal to 0.24.1, as mentioned here. I don't know if I should close this issue or not, since the issue is only fixed for me right now, and not for everybody else.

That is strange - I have experienced a similar issue before, but not after I upgraded to gradio==3.23.0. And I can't seem to reproduce your issue on Google Colab. I also see that version 0.24.1 is already installed on Colab (using !pip list at the bottom):

!pip list
> httpx                         0.24.1

One way to solve this might be to add httpx>=0.24.1 to requirements.txt

Sign up or log in to comment