diff --git a/docs/api-inference/tasks/image-to-image.md b/docs/api-inference/tasks/image-to-image.md index 810b97e57..1103ef21f 100644 --- a/docs/api-inference/tasks/image-to-image.md +++ b/docs/api-inference/tasks/image-to-image.md @@ -47,6 +47,7 @@ No snippet available for this task. | :--- | :--- | :--- | | **inputs*** | _string_ | The input image data as a base64-encoded string. If no `parameters` are provided, you can also provide the image data as a raw bytes payload. | | **parameters** | _object_ | | +| **        prompt** | _string_ | The text prompt to guide the image generation. | | **        guidance_scale** | _number_ | For diffusion models. A higher guidance scale value encourages the model to generate images closely linked to the text prompt at the expense of lower image quality. | | **        negative_prompt** | _string_ | One prompt to guide what NOT to include in image generation. | | **        num_inference_steps** | _integer_ | For diffusion models. The number of denoising steps. More denoising steps usually lead to a higher quality image at the expense of slower inference. | diff --git a/scripts/api-inference/package.json b/scripts/api-inference/package.json index 49cd7a61f..3ae298c99 100644 --- a/scripts/api-inference/package.json +++ b/scripts/api-inference/package.json @@ -15,7 +15,7 @@ "license": "ISC", "dependencies": { "@huggingface/inference": "^3.5.0", - "@huggingface/tasks": "^0.17.4", + "@huggingface/tasks": "^0.18.4", "@types/node": "^22.5.0", "handlebars": "^4.7.8", "node": "^20.17.0", diff --git a/scripts/api-inference/pnpm-lock.yaml b/scripts/api-inference/pnpm-lock.yaml index 46a86a1bd..7a8a28a8d 100644 --- a/scripts/api-inference/pnpm-lock.yaml +++ b/scripts/api-inference/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: specifier: ^3.5.0 version: 3.5.0 '@huggingface/tasks': - specifier: ^0.17.4 - version: 0.17.4 + specifier: ^0.18.4 + version: 0.18.4 '@types/node': specifier: ^22.5.0 version: 22.5.0 @@ -193,8 +193,11 @@ packages: resolution: {integrity: sha512-5IKkI/HJDDWg5aVWyd60kj27L9Kwxyyvu64U1To4/HzsZj13flqv2rJMrT6OB0izvFwTfUN1SDrrA5OH3YbxQQ==} engines: {node: '>=18'} - '@huggingface/tasks@0.17.4': - resolution: {integrity: sha512-LES7+OosthFKdqRL0e+bA2d4jfKmiQWuqahsPrv0+EsSZtdHdaZ3nje0f2g5wq4miHX4xWpBLuWJknjdnBwXsA==} + '@huggingface/tasks@0.17.9': + resolution: {integrity: sha512-lV6RgCJkqy3p93FFxP9H4SGJmFcHAwr1FO+Zk56q/JWsf7Tdsel1DEo1Xfd3An7ZPWpc2Y9ldRecGo9efDYghg==} + + '@huggingface/tasks@0.18.4': + resolution: {integrity: sha512-kZ8G2b6JSdVCn48VpmB2Kcb9ae16HmDRf4RWEQJMgbF98DFTt4y69fTcvQ1vi/qALRWL57pDpbzIlwWlVhY3aQ==} '@jridgewell/resolve-uri@3.1.2': resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} @@ -413,9 +416,11 @@ snapshots: '@huggingface/inference@3.5.0': dependencies: - '@huggingface/tasks': 0.17.4 + '@huggingface/tasks': 0.17.9 + + '@huggingface/tasks@0.17.9': {} - '@huggingface/tasks@0.17.4': {} + '@huggingface/tasks@0.18.4': {} '@jridgewell/resolve-uri@3.1.2': {}