Spaces:
Runtime error
Runtime error
Commit
·
4c0b43a
1
Parent(s):
8f35dfd
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def generate_image(prompt, seed=0, negative_prompt="", model="Deliberate", sampl
|
|
| 16 |
"sampler": sampler,
|
| 17 |
"steps": steps
|
| 18 |
}
|
| 19 |
-
response = requests.post(api_url, data=data)
|
| 20 |
# Decode the base64 image string
|
| 21 |
img_bytes = base64.b64decode(response.json()["url"])
|
| 22 |
|
|
|
|
| 16 |
"sampler": sampler,
|
| 17 |
"steps": steps
|
| 18 |
}
|
| 19 |
+
response = requests.post(api_url, data=data, timeout=3600)
|
| 20 |
# Decode the base64 image string
|
| 21 |
img_bytes = base64.b64decode(response.json()["url"])
|
| 22 |
|