JavaScript and TypeScript client library for interacting with Gradio APIs, providing methods to connect to, submit predictions to, and manage connections with Gradio applications.
Overall
score
96%
Build a command-line tool that monitors the status of a Hugging Face Space and provides real-time updates about its runtime state.
Your tool should:
HF_TOKEN@generates
Create test cases to verify your implementation:
/**
* Monitors a Hugging Face Space and reports its status
*
* @param {string} spaceId - The Hugging Face Space identifier (e.g., "user/space-name")
* @param {Object} options - Configuration options
* @param {string} [options.hf_token] - Hugging Face API token for authentication
* @param {Function} [options.onStatusChange] - Callback function called when status changes
* @returns {Promise<Object>} Status information including current state
*/
async function monitorSpace(spaceId, options = {}) {
// Implementation here
}
module.exports = { monitorSpace };Provides client connectivity to Gradio applications and Hugging Face Spaces.
Install with Tessl CLI
npx tessl i tessl/npm-gradio--clientevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10