I encounter an error when using the last version of the text-generation library (0.7.0).
When using the generate method, TGI v1.4.4 returns a json dictionary but the method is trying extract the first element of a list as presented below. Removing the indexing [0] seems to resolve the issue.
I encounter an error when using the last version of the
text-generation
library (0.7.0). When using thegenerate
method, TGI v1.4.4 returns a json dictionary but the method is trying extract the first element of a list as presented below. Removing the indexing[0]
seems to resolve the issue.https://github.com/huggingface/text-generation-inference/blob/6c4496a1a30f119cebd3afbfedd847039325dbc9/clients/python/text_generation/client.py#L285