You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're testing the image header accept requests for valid return object encoding but not any of the audio tasks.
Not exactly. We are testing that if a task expects an image to be returned (i.e. "text-to-image" or"image-to-image"), then the Accept header must be set to png by default in the requests (more details in #1567).
But we are not testing the response from the Inference API. In general, I don't think we should use huggingface_hub test pipeline to test the Inference API (it's too compute intensive + tests are mocked anyway + InferenceClient is meant to work on several backends).
We should likely still add the test for expected audio result using the mime types for audio the same images at least.
I'm also using the tool internally for a published product using several inference endpoints, but as you said it's fairly trivial to handle the API requests in custom handler.py
IMHO, we should be be able to send accept headers in the hub tool as well. I think it's a valid use case to want a specific format as requested, but I've been waiting for this for months so I can complete my library for unity engine integration. I would really like to promote it for upcoming hackathons like The MIT Reality Hack in January.
We're testing the image header accept requests for valid return object encoding but not any of the audio tasks.
huggingface_hub/tests/test_inference_client.py
Line 512 in ef846d7
Related to huggingface/api-inference-community#351
suggested test casees:
audio/mp3
audio/wav
The text was updated successfully, but these errors were encountered: