KwaiVGI / LivePortrait

Bring portraits to life!
https://liveportrait.github.io
Other
13.11k stars 1.39k forks source link

The GUI seems to be broken #414

Open gjnave opened 1 month ago

gjnave commented 1 month ago

Hi and thank you so much for this great project that i've been following for months now:

the current (manual install) version seems to have broken the GUI. When clicking on a sample image, the following error is displayed: Could not parse server response: SyntaxError: Unexpected token 'I', "Internal S"... is not valid JSON

as well, even if uploading images and video (or using webcam) it errors as well:

pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <class 'starlette.requests.Request'>. Set `arbitrary_types_allowed=True` in the model_config to ignore this error or implement `__get_pydantic_core_schema__` on your type to fully support it.

If you got this error by calling handler(<some type>) within `__get_pydantic_core_schema__` then you likely need to call `handler.generate_schema(<some type>)` since we do not call `__get_pydantic_core_schema__` on `<some type>` otherwise to avoid infinite recursion

command line inference works however.

thank you for your assistance

Gary

ghandivaffel commented 1 month ago

I had the same issue. After googling, I found this solution:

"Setting fastapi==0.112.2 in requirements has helped me as a temporary fix."

It fixed it for me.

Found it here: https://discuss.huggingface.co/t/new-gradio-space-connection-errored-out/105509

gjnave commented 1 month ago

I had the same issue. After googling, I found this solution:

"Setting fastapi==0.112.2 in requirements has helped me as a temporary fix."

It fixed it for me.

Found it here: https://discuss.huggingface.co/t/new-gradio-space-connection-errored-out/105509

Excellent! This was the answer