Can't update spaces

#2
by Yntec - opened

@John6666 Hey! Can you help? The code you provided doesn't seem to be working anymore for new spaces/updated spaces. This space is working properly, but if I clone or update it it doesn't work anymore and throws this error when trying to generate an image:

InferenceClient.text_to_image() got an unexpected keyword argument 'token'

I wonder if it is temporary or if we need to update externalmod.py so it works with something that changed in the last 20 hours? (Yntec/ToyWorld is currently dead because I tried to update it.)

The cause is that the huggingface_hub library has been updated.
Here's a patch that will get it working for now. Just upload the requirements.txt file like this content. If you already have a requirements.txt file for your space, just add the following to that file.

huggingface_hub==0.26.2

Sign up or log in to comment