Rooni commited on
Commit
1540bc9
·
1 Parent(s): e339643

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -108,7 +108,7 @@ def query(prompt, model, is_negative=False, steps=30, cfg_scale=7, sampler="DPM+
108
  "strength": strength
109
  }
110
 
111
- response = requests.post(f"{api_base}API_URL", headers=headers, json=payload, timeout=timeout)
112
  if response.status_code != 200:
113
  print(f"Ошибка: Не удалось получить изображение. Статус ответа: {response.status_code}")
114
  print(f"Содержимое ответа: {response.text}")
 
108
  "strength": strength
109
  }
110
 
111
+ response = requests.post(f"{api_base}{API_URL}", headers=headers, json=payload, timeout=timeout)
112
  if response.status_code != 200:
113
  print(f"Ошибка: Не удалось получить изображение. Статус ответа: {response.status_code}")
114
  print(f"Содержимое ответа: {response.text}")