Spaces:
Running
Running
Update app.py
Browse files
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}")
|