unitypredict-engines 1.1.76__tar.gz → 1.1.78__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_engines-1.1.76 → unitypredict_engines-1.1.78}/PKG-INFO +1 -1
- {unitypredict_engines-1.1.76 → unitypredict_engines-1.1.78}/unitypredict_engines/Platform.py +5 -2
- {unitypredict_engines-1.1.76 → unitypredict_engines-1.1.78}/unitypredict_engines/unitypredictcli.py +5 -1
- {unitypredict_engines-1.1.76 → unitypredict_engines-1.1.78}/unitypredict_engines.egg-info/PKG-INFO +1 -1
- {unitypredict_engines-1.1.76 → unitypredict_engines-1.1.78}/README.md +0 -0
- {unitypredict_engines-1.1.76 → unitypredict_engines-1.1.78}/setup.cfg +0 -0
- {unitypredict_engines-1.1.76 → unitypredict_engines-1.1.78}/setup.py +0 -0
- {unitypredict_engines-1.1.76 → unitypredict_engines-1.1.78}/unitypredict_engines/Models.py +0 -0
- {unitypredict_engines-1.1.76 → unitypredict_engines-1.1.78}/unitypredict_engines/UnityPredictLocalHost.py +0 -0
- {unitypredict_engines-1.1.76 → unitypredict_engines-1.1.78}/unitypredict_engines/__init__.py +0 -0
- {unitypredict_engines-1.1.76 → unitypredict_engines-1.1.78}/unitypredict_engines/scripts.py +0 -0
- {unitypredict_engines-1.1.76 → unitypredict_engines-1.1.78}/unitypredict_engines/unitypredictUtils.py +0 -0
- {unitypredict_engines-1.1.76 → unitypredict_engines-1.1.78}/unitypredict_engines.egg-info/SOURCES.txt +0 -0
- {unitypredict_engines-1.1.76 → unitypredict_engines-1.1.78}/unitypredict_engines.egg-info/dependency_links.txt +0 -0
- {unitypredict_engines-1.1.76 → unitypredict_engines-1.1.78}/unitypredict_engines.egg-info/entry_points.txt +0 -0
- {unitypredict_engines-1.1.76 → unitypredict_engines-1.1.78}/unitypredict_engines.egg-info/requires.txt +0 -0
- {unitypredict_engines-1.1.76 → unitypredict_engines-1.1.78}/unitypredict_engines.egg-info/top_level.txt +0 -0
{unitypredict_engines-1.1.76 → unitypredict_engines-1.1.78}/unitypredict_engines/Platform.py
RENAMED
|
@@ -466,7 +466,7 @@ class IPlatform:
|
|
|
466
466
|
raise NotImplementedError
|
|
467
467
|
|
|
468
468
|
@abstractmethod
|
|
469
|
-
def invokeUnityPredictModel(self, modelId: str, request: ChainedInferenceRequest, waitForResponse: bool = True) -> ChainedInferenceResponse:
|
|
469
|
+
def invokeUnityPredictModel(self, modelId: str, request: ChainedInferenceRequest, waitForResponse: bool = True, timeout: int = None) -> ChainedInferenceResponse:
|
|
470
470
|
"""
|
|
471
471
|
Invokes another UnityPredict model from the current engine, enabling model chaining.
|
|
472
472
|
|
|
@@ -484,13 +484,16 @@ class IPlatform:
|
|
|
484
484
|
waitForResponse (bool, optional): If True, the method will wait for the inference to complete
|
|
485
485
|
before returning. If False, it will return immediately with a response containing the
|
|
486
486
|
status URL that can be used to check the inference progress. Defaults to True.
|
|
487
|
+
timeout (int, optional): The maximum time in seconds to wait for the inference to complete
|
|
488
|
+
when waitForResponse is True. If None, the method will wait indefinitely. Defaults to None.
|
|
487
489
|
|
|
488
490
|
Returns:
|
|
489
491
|
ChainedInferenceResponse: The response from the chained model, including outcomes,
|
|
490
492
|
errors, and compute costs. If waitForResponse is False and the inference is still
|
|
491
493
|
processing, the response will contain a status URL that can be used to check the
|
|
492
494
|
inference progress. In this case, you can use checkChainedInferenceJobStatus to
|
|
493
|
-
periodically check the status of the inference until it completes.
|
|
495
|
+
periodically check the status of the inference until it completes. If a timeout
|
|
496
|
+
occurs, the response will have status 'Error' with an appropriate error message.
|
|
494
497
|
|
|
495
498
|
Note:
|
|
496
499
|
When waitForResponse is False, you can use checkChainedInferenceJobStatus to poll
|
{unitypredict_engines-1.1.76 → unitypredict_engines-1.1.78}/unitypredict_engines/unitypredictcli.py
RENAMED
|
@@ -351,6 +351,9 @@ class UnityPredictCli:
|
|
|
351
351
|
apiKey = self._uptApiKeyDict[uptProfile]["UPT_API_KEY"]
|
|
352
352
|
endpointHeader = {"Authorization": f"Bearer {self._uptApiKeyHeaderPrefix}{apiKey}"}
|
|
353
353
|
|
|
354
|
+
if self._uptVerbose:
|
|
355
|
+
print (f"Fetching upload url for the file: {fileName} of type {fileType}: {fileToUploadUrl} ...")
|
|
356
|
+
|
|
354
357
|
try:
|
|
355
358
|
response = requests.get(fileToUploadUrl, headers=endpointHeader, timeout=self._uptResponseTimeout)
|
|
356
359
|
|
|
@@ -584,7 +587,7 @@ class UnityPredictCli:
|
|
|
584
587
|
# Upload source files
|
|
585
588
|
mainFile: str = "main.py"
|
|
586
589
|
excludedExtensions: list = [".env", ".md", ".gitignore", ".DS_Store", "Thumbs.db"]
|
|
587
|
-
excludedFiles: list = ["config.json"]
|
|
590
|
+
excludedFiles: list = ["config.json", "main.py", "AdditionalDockerCommands.txt", "requirements.txt", "DebugLogs.txt"]
|
|
588
591
|
|
|
589
592
|
fileUploadList: list = []
|
|
590
593
|
|
|
@@ -602,6 +605,7 @@ class UnityPredictCli:
|
|
|
602
605
|
|
|
603
606
|
# Check if file has an excluded extension
|
|
604
607
|
fileExtension = os.path.splitext(items)[1].lower()
|
|
608
|
+
|
|
605
609
|
if fileExtension in excludedExtensions:
|
|
606
610
|
continue
|
|
607
611
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{unitypredict_engines-1.1.76 → unitypredict_engines-1.1.78}/unitypredict_engines/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|