The reason why it does not work is that huggingface does not install this gradio==3.50.2 Instead they replace it with 3.1.4 version. If someone wants to change it for newer or older gradio. Go ahead.