Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def query(prompt, negative_prompt="", steps=35, cfg_scale=7, sampler="DPM++ 2M K
|
|
41 |
|
42 |
for attempt in range(3): # 最大3回の再試行
|
43 |
try:
|
44 |
-
response = requests.post(API_URL,
|
45 |
if response.status_code != 200:
|
46 |
return None, f"Error: Failed to get image. Status code: {response.status_code}, Details: {response.text}"
|
47 |
|
|
|
41 |
|
42 |
for attempt in range(3): # 最大3回の再試行
|
43 |
try:
|
44 |
+
response = requests.post(API_URL, json=payload, timeout=timeout)
|
45 |
if response.status_code != 200:
|
46 |
return None, f"Error: Failed to get image. Status code: {response.status_code}, Details: {response.text}"
|
47 |
|