Dedicated Deployment에 요청 보내기
Python SDK를 직접 사용하거나 HTTP API를 사용하거나 Workflows 웹 인터페이스를 사용해 Dedicated Deployment에 요청을 보낼 수 있습니다.
마지막 업데이트
도움이 되었나요?
도움이 되었나요?
from inference_sdk import InferenceHTTPClient
CLIENT = InferenceHTTPClient(
api_url="https://dev-testing.roboflow.cloud",
api_key="ROBOFLOW_API_KEY"
)
image_url = "https://source.roboflow.com/pwYAXv9BTpqLyFfgQoPZ/u48G0UpWfk8giSw7wrU8/original.jpg"
result = CLIENT.infer(image_url, model_id="soccer-players-5fuqs/1")import requests
import json
api_url = "https://dev-testing.roboflow.cloud"
model_id = "soccer-players-5fuqs/1"
image_url = "https://source.roboflow.com/pwYAXv9BTpqLyFfgQoPZ/u48G0UpWfk8giSw7wrU8/original.jpg"
resp = requests.get(f"{api_url}/{model_id}", params = {"api_key": "ROBOFLOW_API_KEY", "image": image_url})
result = json.loads(resp.content)