Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The GUI seems to be broken #414

Open
gjnave opened this issue Oct 8, 2024 · 2 comments
Open

The GUI seems to be broken #414

gjnave opened this issue Oct 8, 2024 · 2 comments

Comments

@gjnave
Copy link

gjnave commented Oct 8, 2024

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
Copy link

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
Copy link
Author

gjnave commented Oct 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants