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 1
1
import requests
2
+
2
3
from roboflow .config import DEDICATED_DEPLOYMENT_URL
3
4
4
5
Original file line number Diff line number Diff line change 1
1
import json
2
+
2
3
from roboflow .adapters import deploymentapi
3
4
from roboflow .config import load_roboflow_api_key
4
5
Original file line number Diff line number Diff line change 5
5
6
6
import roboflow
7
7
from roboflow import config as roboflow_config
8
+ from roboflow import deployment
8
9
from roboflow .adapters import rfapi
9
10
from roboflow .config import APP_URL , get_conditional_configuration_variable , load_roboflow_api_key
10
11
from roboflow .models .classification import ClassificationModel
11
12
from roboflow .models .instance_segmentation import InstanceSegmentationModel
12
13
from roboflow .models .keypoint_detection import KeypointDetectionModel
13
14
from roboflow .models .object_detection import ObjectDetectionModel
14
15
from roboflow .models .semantic_segmentation import SemanticSegmentationModel
15
- from roboflow import deployment
16
+
16
17
17
18
def login (args ):
18
19
roboflow .login ()
@@ -161,7 +162,6 @@ def infer(args):
161
162
print (group )
162
163
163
164
164
-
165
165
def _argparser ():
166
166
parser = argparse .ArgumentParser (description = "Welcome to the roboflow CLI: computer vision at your fingertips 🪄" )
167
167
subparsers = parser .add_subparsers (title = "subcommands" )
@@ -454,10 +454,12 @@ def _add_get_workspace_project_version_parser(subparsers):
454
454
)
455
455
workspace_project_version_parser .set_defaults (func = get_workspace_project_version )
456
456
457
+
457
458
def _add_login_parser (subparsers ):
458
459
login_parser = subparsers .add_parser ("login" , help = "Log in to Roboflow" )
459
460
login_parser .set_defaults (func = login )
460
461
462
+
461
463
def main ():
462
464
parser = _argparser ()
463
465
args = parser .parse_args ()
You can’t perform that action at this time.
0 commit comments