Fixed requests.get function call by adding timeout parameter. (#11156)
* Fixed requests.get function call by adding timeout parameter.
* declare DIFFUSERS_REQUEST_TIMEOUT in constants and import when needed
* remove unneeded os import
* Apply style fixes
---------
Co-authored-by: Sai-Suraj-27 <sai.suraj.27.729@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>