microsoft / microsoft/ai-dev-gallery

[Bug] Cancellation is slow for Describe Image sample

Open
#102 0 comments 0 reactions 1 assignee View on GitHub

@Jaylyn-Barbee is already working on this.

Since Jan 21, 2025.

Dominant language
C#
Stars
1.5k
Forks
223
PR merge metrics
No merged PRs in 30d

Description

Context:
btwn Line 134 and Line 139 is where the bulk of the inferencing is happening. This is the part that is actually taking. So when a user clicks "Cancel" 9 times out of 10 they are hung up on this step, waiting for it to return before it can be registered that a cancellation was requested. Specifically line 141 takes a while and there is no way to pass a cancellation token to that function.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.