File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11import requests
2+
23from roboflow .config import DEDICATED_DEPLOYMENT_URL
34
45
Original file line number Diff line number Diff line change 11import json
2+
23from roboflow .adapters import deploymentapi
34from roboflow .config import load_roboflow_api_key
45
Original file line number Diff line number Diff line change 55
66import roboflow
77from roboflow import config as roboflow_config
8+ from roboflow import deployment
89from roboflow .adapters import rfapi
910from roboflow .config import APP_URL , get_conditional_configuration_variable , load_roboflow_api_key
1011from roboflow .models .classification import ClassificationModel
1112from roboflow .models .instance_segmentation import InstanceSegmentationModel
1213from roboflow .models .keypoint_detection import KeypointDetectionModel
1314from roboflow .models .object_detection import ObjectDetectionModel
1415from roboflow .models .semantic_segmentation import SemanticSegmentationModel
15- from roboflow import deployment
16+
1617
1718def login (args ):
1819 roboflow .login ()
@@ -161,7 +162,6 @@ def infer(args):
161162 print (group )
162163
163164
164-
165165def _argparser ():
166166 parser = argparse .ArgumentParser (description = "Welcome to the roboflow CLI: computer vision at your fingertips 🪄" )
167167 subparsers = parser .add_subparsers (title = "subcommands" )
@@ -454,10 +454,12 @@ def _add_get_workspace_project_version_parser(subparsers):
454454 )
455455 workspace_project_version_parser .set_defaults (func = get_workspace_project_version )
456456
457+
457458def _add_login_parser (subparsers ):
458459 login_parser = subparsers .add_parser ("login" , help = "Log in to Roboflow" )
459460 login_parser .set_defaults (func = login )
460461
462+
461463def main ():
462464 parser = _argparser ()
463465 args = parser .parse_args ()
You can’t perform that action at this time.
0 commit comments