Spaces:
Running
Running
Update helper_functions_api.py
Browse files- 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:
|