nyanko7 commited on
Commit
d9a5943
·
verified ·
1 Parent(s): efde29f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -71,7 +71,7 @@ def tpu_inference_api(
71
  "init_image": init_image,
72
  "inference_steps": inference_steps,
73
  }
74
- response = requests.post(url, json=payload)
75
  if response.status_code != 200:
76
  raise Exception(f"Error calling API: {response.status_code} - {response.text}")
77
 
 
71
  "init_image": init_image,
72
  "inference_steps": inference_steps,
73
  }
74
+ response = requests.post(url, json=payload, timeout=60)
75
  if response.status_code != 200:
76
  raise Exception(f"Error calling API: {response.status_code} - {response.text}")
77