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

fix cloudflare request blocker str/byte mismatch #5864

Closed
wants to merge 1 commit into from

Conversation

Googolplexed0
Copy link

Checklist:

Fixes #5839 with minimal alterations. The previous version is opened the index.html template as plain text, but tried to edit as bytes Made string replacements instead then added the TextIOWrapper to prevent an error with jinja2 template validation.

@oobabooga
Copy link
Owner

I have never experienced #5839. Are you using the correct gradio version?

@oobabooga
Copy link
Owner

Closing for the same reason as #5976 (comment). Gradio versions not specified in requirements.txt are not supported.

@oobabooga oobabooga closed this May 19, 2024
@edwios
Copy link

edwios commented Jun 13, 2024

Tried with Gradio 4.26 (did a pip install -U -r requirements_apple_silicon.txt), 4.28, 4.29, and the latest 4.36.1, webui still won't run without applying this patch.

MacBP M1Max 64GB RAM MacOS 14.5

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

Successfully merging this pull request may close these issues.

TypeError: replace() argument 1 must be str, not bytes
3 participants