इंस्टेंट मॉडल चलाएँ
आप Roboflow Instant मॉडल्स को Python SDK और Serverless Hosted API V2 का उपयोग करके चला सकते हैं।
Instant मॉडल चलाने के लिए, निम्नलिखित कोड का उपयोग करें:
from inference_sdk import InferenceHTTPClient, InferenceConfiguration
CLIENT = InferenceHTTPClient(
api_url="https://serverless.roboflow.com",
api_key="<आपकी API कुंजी>",
)
configuration = InferenceConfiguration(
confidence_threshold=0.95
)
CLIENT.configure(configuration)
result = client.infer("image.jpeg", model_id="model-id/1")
print(result)
ऊपर, अपना निर्दिष्ट करें मॉडल आईडी और API कुंजी.
यह कोड आपका मॉडल चलाएगा और परिणाम लौटाएगा।
Last updated
Was this helpful?