Error invoking DialoGPT-large via serverless inference endpoint - can only concatenate str (not "dict") to str"
Hello,Using the server less inference with the following request as per thedocumentation:curl https://api-inference.huggingface.co/models/microsoft/DialoGPT-large \
        -X POST \
        -d '{
             "inputs":{
                "past_user_inputs":[
                   "Which movie is the best ?"
                ],
                "generated_responses":[
                   "It is Die Hard for sure."
                ],
                "text":"Can you explain why ?"
             }
          }' \
        -H "Authorization: Bearer <API Key>"I get the following response:{
   "error":"unknown error",
   "warnings":[
      "There was an inference error: unknown error: can only concatenate str (not \"dict\") to str"
   ]
}What am I missing?
2024-02-12T09:36:48Z
Update: I managed to get something by stringifying the body, however:curl https://api-inference.huggingface.co/models/microsoft/DialoGPT-large \
        -X POST \
        -d '{\"inputs\": {\"past_user_inputs\": [\"Which movie is the best ?\"], \"generated_responses\": [\"It is Die Hard for sure.\"], \"text\":\"Can you explain why ?\"}}' \
        -H "Authorization: Bearer <API Key>"The response is:[{"generated_text":"{\\\"inputs\\\": {\\\"past_user_inputs\\\": [\\\"Which movie is the best ?\\\"], \\\"generated_responses\\\": [\\\"It is Die Hard for sure.\\\"], \\\"text\\\":\\\"Can you explain why ?\\\"}}ourse"}]%Looks entirely buggy to me ?
2024-03-14T12:23:09Z
I’m having the same problem on the Hugging Face AutoTrain Playgroun after fine-tuning my model.@redvividid you manage to solve it? Any ideas how to fix it? Thanksimage1889×857 47.8 KB
2024-03-14T12:38:21Z
@nadav-sellenceNopeI gave up using HuggingFace for this use-case - completely unusable despite having reached their support:Thanks for your patience while we looked into this! We made a few changes on our side, whereconversationalhas been changed to rawtext-generationinstead. We’re in the process of updating this and the documentationSo I have concluded that DialoGPT is not usable for conversational use-cases on HuggingFace (which is obviously untrue as their chat demo works)..