अपनी Roboflow API Key ढूँढ़ें
Roboflow API और Roboflow Inference के साथ authenticate करने के लिए अपनी API Key ढूँढ़ें
अंतिम अपडेट
क्या यह उपयोगी था?
क्या यह उपयोगी था?
export ROBOFLOW_API_KEY=YOUR_API_KEYfrom inference import get_model
model = get_model(model_id="...", api_key="YOUR_API_KEY")import requests
my_api_key = "YOUR_API_KEY"
url = f"http://localhost:9001/soccer-players-5fuqs/1?api_key={my_api_key}"
response = requests.post(url)
url = "http://localhost:9001/infer/object_detection"
payload = {
"api_key": my_api_key,
"model_id": "soccer-players-5fuqs/1",
}
response = requests.post(url, json=payload)docker run -it --rm --network=host -e ROBOFLOW_API_KEY=YOUR_API_KEY roboflow/roboflow-inference-server-cpu:latest