unitypredict 1.1.57__tar.gz → 1.1.59__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {unitypredict-1.1.57 → unitypredict-1.1.59}/PKG-INFO +1 -1
- {unitypredict-1.1.57 → unitypredict-1.1.59}/unitypredict/UnityPredictClient.py +3 -3
- {unitypredict-1.1.57 → unitypredict-1.1.59}/unitypredict.egg-info/PKG-INFO +1 -1
- {unitypredict-1.1.57 → unitypredict-1.1.59}/README.md +0 -0
- {unitypredict-1.1.57 → unitypredict-1.1.59}/setup.cfg +0 -0
- {unitypredict-1.1.57 → unitypredict-1.1.59}/setup.py +0 -0
- {unitypredict-1.1.57 → unitypredict-1.1.59}/unitypredict/__init__.py +0 -0
- {unitypredict-1.1.57 → unitypredict-1.1.59}/unitypredict.egg-info/SOURCES.txt +0 -0
- {unitypredict-1.1.57 → unitypredict-1.1.59}/unitypredict.egg-info/dependency_links.txt +0 -0
- {unitypredict-1.1.57 → unitypredict-1.1.59}/unitypredict.egg-info/requires.txt +0 -0
- {unitypredict-1.1.57 → unitypredict-1.1.59}/unitypredict.egg-info/top_level.txt +0 -0
|
@@ -300,7 +300,7 @@ class UnityPredictClient:
|
|
|
300
300
|
if (finalResponseJson.get('status') == 'Processing'):
|
|
301
301
|
statusUrl = finalResponseJson.get('statusUrl') # this is probably a long-running inference
|
|
302
302
|
|
|
303
|
-
|
|
303
|
+
loopWaitTime = 0.25
|
|
304
304
|
startTime = time.time()
|
|
305
305
|
maxPredictTime = self.ApiMaxTimeout
|
|
306
306
|
maxTimeExceed = False
|
|
@@ -315,10 +315,10 @@ class UnityPredictClient:
|
|
|
315
315
|
response = requests.get(url = statusUrl, headers={"Authorization": "Bearer {}".format(apiKey)})
|
|
316
316
|
finalResponseJson = response.json()
|
|
317
317
|
|
|
318
|
-
delay = min(
|
|
318
|
+
delay = min(loopWaitTime, 30)
|
|
319
319
|
time.sleep(delay)
|
|
320
320
|
|
|
321
|
-
|
|
321
|
+
loopWaitTime *= 2
|
|
322
322
|
|
|
323
323
|
print('Waiting {} seconds for job to finish...'.format(delay))
|
|
324
324
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|