File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 15
15
from roboflow .models import CLIPModel , GazeModel # noqa: F401
16
16
from roboflow .util .general import write_line
17
17
18
- __version__ = "1.1.35 "
18
+ __version__ = "1.1.36 "
19
19
20
20
21
21
def check_key (api_key , model , notebook , num_retries = 0 ):
@@ -210,6 +210,7 @@ def __init__(
210
210
self .api_key = api_key
211
211
if self .api_key is None :
212
212
self .api_key = load_roboflow_api_key ()
213
+
213
214
214
215
self .model_format = model_format
215
216
self .notebook = notebook
@@ -239,14 +240,13 @@ def workspace(self, the_workspace=None):
239
240
the_workspace = self .current_workspace
240
241
241
242
if self .api_key : # Check if api_key was passed during __init__
242
- workspace_api_key = load_roboflow_api_key (the_workspace )
243
- api_key = workspace_api_key or self .api_key
243
+ api_key = self .api_key
244
244
list_projects = rfapi .get_workspace (api_key , the_workspace )
245
245
return Workspace (list_projects , api_key , the_workspace , self .model_format )
246
246
247
247
elif self .api_key in DEMO_KEYS :
248
248
return Workspace ({}, self .api_key , the_workspace , self .model_format )
249
-
249
+
250
250
else :
251
251
raise ValueError ("A valid API key must be provided." )
252
252
You can’t perform that action at this time.
0 commit comments