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 .web_url access in FastAPI context #700

Merged
merged 8 commits into from
Apr 17, 2024
Merged

Conversation

devin-ai-integration[bot]
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Apr 17, 2024

This PR addresses the issue where .web_url was being accessed outside of a request context in the FastAPI app, leading to a ValueError. Changes ensure .web_url is accessed within a request handler using FastAPI's Jinja2Templates. Affected files: stable_diffusion_xl.py, playground.py, stable_diffusion_xl_lightning.py.

@charlesfrye charlesfrye merged commit 6040e5d into main Apr 17, 2024
4 checks passed
@charlesfrye charlesfrye deleted the fix-web-url-access branch April 17, 2024 06:09
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.

1 participant