Saw a fix by upgrading the pydantic to latest version: jhj0517/Whisper-WebUI#258
Simply changing the requirements.txt with pydantic==4.43.0 won't work, because gradio is locked in a low version 4.19.1 because of googletrans depending on httpx==0.14.1 which is not supported by newer version of gradio.
Wondering if there is a quick work around to resolve the issue without refactoring the code?