pvanand commited on
Commit
37e51f9
1 Parent(s): 0b115cd

Update helper_functions_api.py

Browse files
Files changed (1) hide show
  1. helper_functions_api.py +1 -1
helper_functions_api.py CHANGED
@@ -255,7 +255,7 @@ def rephrase_content(data_format, content, query):
255
 
256
  def fetch_content(url):
257
  try:
258
- response = hrequests.get(url)
259
  if response.status_code == 200:
260
  return response.text
261
  except Exception as e:
 
255
 
256
  def fetch_content(url):
257
  try:
258
+ response = hrequests.get(url, timeout=5)
259
  if response.status_code == 200:
260
  return response.text
261
  except Exception as e: