-
Notifications
You must be signed in to change notification settings - Fork 187
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
ComfyUI example #543
ComfyUI example #543
Conversation
from asgiproxy.config import BaseURLProxyConfigMixin, ProxyConfig | ||
from asgiproxy.context import ProxyContext | ||
from asgiproxy.simple_proxy import make_simple_proxy_app | ||
|
||
spawn_comfyui_in_background() | ||
|
||
config = type( | ||
"Config", | ||
(BaseURLProxyConfigMixin, ProxyConfig), | ||
{ | ||
"upstream_base_url": f"http://{HOST}:{PORT}", | ||
"rewrite_host_header": f"{HOST}:{PORT}", | ||
}, | ||
)() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm I think we should try to avoid repeating this type()
magic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeh I just copy-pasted this from the Streamlit example. I don't have the background on why it was setup this way.
When I download another model, Comfyui says null. Only the model included in the example works. Also, how do I persist the downloaded model in a modal volume? |
Works pretty well! I quite like UI, reminds me a lot of Grasshopper from my architecture days.
Type of Change
Checklist
lambda-test: false
is added to example frontmatter