File tree 1 file changed +4
-9
lines changed
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -131,17 +131,12 @@ def initialize_roboflow(the_workspace=None):
131
131
132
132
global active_workspace
133
133
134
- conf_location = os .getenv ("ROBOFLOW_CONFIG_DIR" , default = str (Path .home () / ".config" / "roboflow" / "config.json" ))
135
-
136
- if not os .path .isfile (conf_location ):
137
- raise RuntimeError ("To use this method, you must first login - run roboflow.login()" )
134
+ if the_workspace is None :
135
+ active_workspace = Roboflow ().workspace ()
138
136
else :
139
- if the_workspace is None :
140
- active_workspace = Roboflow ().workspace ()
141
- else :
142
- active_workspace = Roboflow ().workspace (the_workspace )
137
+ active_workspace = Roboflow ().workspace (the_workspace )
143
138
144
- return active_workspace
139
+ return active_workspace
145
140
146
141
147
142
def load_model (model_url ):
You can’t perform that action at this time.
0 commit comments