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 1515from roboflow .models import CLIPModel , GazeModel # noqa: F401
1616from roboflow .util .general import write_line
1717
18- __version__ = "1.1.35 "
18+ __version__ = "1.1.36 "
1919
2020
2121def check_key (api_key , model , notebook , num_retries = 0 ):
@@ -210,6 +210,7 @@ def __init__(
210210 self .api_key = api_key
211211 if self .api_key is None :
212212 self .api_key = load_roboflow_api_key ()
213+
213214
214215 self .model_format = model_format
215216 self .notebook = notebook
@@ -239,14 +240,13 @@ def workspace(self, the_workspace=None):
239240 the_workspace = self .current_workspace
240241
241242 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
244244 list_projects = rfapi .get_workspace (api_key , the_workspace )
245245 return Workspace (list_projects , api_key , the_workspace , self .model_format )
246246
247247 elif self .api_key in DEMO_KEYS :
248248 return Workspace ({}, self .api_key , the_workspace , self .model_format )
249-
249+
250250 else :
251251 raise ValueError ("A valid API key must be provided." )
252252
You can’t perform that action at this time.
0 commit comments