Fix: URL /check/ (было photo-botcheck/ — терялся слэш после replace)
This commit is contained in:
Binary file not shown.
@@ -202,7 +202,7 @@ def check_photo_api(image_bytes: bytes, timeout: float = 300.0) -> dict:
|
|||||||
"raw_answer", "forced_moderation", "timings", "ai_metrics"}
|
"raw_answer", "forced_moderation", "timings", "ai_metrics"}
|
||||||
или {"status": "error", "reason"}
|
или {"status": "error", "reason"}
|
||||||
"""
|
"""
|
||||||
url = API_URL.replace("/upload/", "check/")
|
url = API_URL.replace("/upload/", "/check/")
|
||||||
try:
|
try:
|
||||||
response = requests.post(
|
response = requests.post(
|
||||||
url,
|
url,
|
||||||
|
|||||||
Reference in New Issue
Block a user