Skip to content

Commit 8c1903e

Browse files
authored
Fix check for has_model for model upload (#330)
1 parent 2f4c88b commit 8c1903e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roboflow/core/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def __init__(
9797
response = requests.get(f"{API_URL}/{workspace}/{project}/{self.version}?api_key={self.__api_key}")
9898
if response.ok:
9999
version_info = response.json()["version"]
100-
has_model = bool(version_info.get("models"))
100+
has_model = bool(version_info.get("train", {}).get("model"))
101101
else:
102102
has_model = False
103103

0 commit comments

Comments
 (0)