mikx1's picture
Upload folder using huggingface_hub
b5ea024

A newer version of the Gradio SDK is available: 5.23.3

Upgrade

Promise.limit (ext/promise/limit)

Helps to limit concurrency of asynchronous operations.

const limit = require("ext/promise/limit").bind(Promise);

const limittedAsyncFunction = limit(2, asyncFunction);

imittedAsyncFunction(); // Async operation started
imittedAsyncFunction(); // Async operation started
imittedAsyncFunction(); // On hold until one of previously started finalizes