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 @@ -110,17 +110,17 @@ def __check_if_generating(self):
110110 # check Roboflow API to see if this version is still generating
111111
112112 url = (
113- f"{ API_URL } /{ self .workspace } /{ self .project } /{ self .version } /checkGenerating "
113+ f"{ API_URL } /{ self .workspace } /{ self .project } /{ self .version } ?nocache=true "
114114 )
115115 response = requests .get (url , params = {"api_key" : self .__api_key })
116116 response .raise_for_status ()
117117
118- if response .json ()["progress" ] == None :
118+ if response .json ()["version" ][ " progress" ] == None :
119119 progress = 0.0
120120 else :
121- progress = float (response .json ()["progress" ])
121+ progress = float (response .json ()["version" ][ " progress" ])
122122
123- return response .json ()["generating" ], progress
123+ return response .json ()["version" ][ " generating" ], progress
124124
125125 def __wait_if_generating (self , recurse = False ):
126126 # checks if a given version is still in the progress of generating
You can’t perform that action at this time.
0 commit comments