Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update default API key parameter for get_roboflow_model function #142

Merged
merged 2 commits into from
Oct 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion inference/models/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from inference.core.env import API_KEY
from inference.core.registries.roboflow import get_model_type
from inference.models import (
YOLACT,
Expand Down Expand Up @@ -149,6 +150,6 @@
pass


def get_roboflow_model(model_id, api_key=None, **kwargs):
def get_roboflow_model(model_id, api_key=API_KEY, **kwargs):
task, model = get_model_type(model_id, api_key=api_key)
return ROBOFLOW_MODEL_TYPES[(task, model)](model_id, api_key=api_key, **kwargs)