From 8c75ab1d9a55fc4c67023c6bc760cad0c7df9576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Coque?= Date: Sun, 20 Oct 2024 16:51:47 -0300 Subject: [PATCH] Increase GET Request timeout --- fashn_viton.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fashn_viton.py b/fashn_viton.py index 13f7791..4dd4100 100644 --- a/fashn_viton.py +++ b/fashn_viton.py @@ -146,7 +146,7 @@ class FASHN: if time.time() - start_time > 180: # 3 minutes timeout raise Exception("Maximum polling time exceeded.") - status_response = session.get(f"{ENDPOINT_URL}/status/{pred_id}", headers=headers, timeout=10) + status_response = session.get(f"{ENDPOINT_URL}/status/{pred_id}", headers=headers, timeout=60) status_response.raise_for_status() status_data = status_response.json()