soiz commited on
Commit
4cc9ff0
·
verified ·
1 Parent(s): 59ab3f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, headers=headers, 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
 
 
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