Skip to content

Commit

Permalink
fix(inferences): rely on final status rather than intermediates one t…
Browse files Browse the repository at this point in the history
…o display the result (#77)

* fix(inference): handle queued status

* fix(inferences): rely on final status rather than intermediate
  • Loading branch information
qvaleroo authored Oct 5, 2023
1 parent 9996659 commit bbb3f4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scenario/Editor/PromptWindow/PromptWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ private IEnumerator GetInferenceStatus()
{
InferenceStatusRoot inferenceStatusRoot = JsonConvert.DeserializeObject<InferenceStatusRoot>(response.Content);

if (inferenceStatusRoot.inference.status == "in-progress")
if (inferenceStatusRoot.inference.status != "succeeded" && inferenceStatusRoot.inference.status != "failed" )
{
Debug.Log("Commission in process, please wait..");
EditorCoroutineUtility.StopCoroutine(inferenceStatusCoroutine);
Expand Down

0 comments on commit bbb3f4f

Please sign in to comment.