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