Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ def generate_cached_image(cache_key, prompt, width, height, seed, model_name, ap
|
|
67 |
f"https://api-inference.huggingface.co/models/{model_name}",
|
68 |
headers=headers,
|
69 |
json=data,
|
70 |
-
timeout=
|
71 |
)
|
72 |
response.raise_for_status()
|
73 |
image_data = response.content
|
|
|
67 |
f"https://api-inference.huggingface.co/models/{model_name}",
|
68 |
headers=headers,
|
69 |
json=data,
|
70 |
+
timeout=1550 # Таймаут 3 минуты
|
71 |
)
|
72 |
response.raise_for_status()
|
73 |
image_data = response.content
|