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

ComfyUI example #543

Merged
merged 4 commits into from
Jan 6, 2024
Merged

ComfyUI example #543

merged 4 commits into from
Jan 6, 2024

Conversation

thundergolfer
Copy link
Collaborator

@thundergolfer thundergolfer commented Jan 6, 2024

image

Works pretty well! I quite like UI, reminds me a lot of Grasshopper from my architecture days.

Type of Change

  • New Example
  • Example updates (Bug fixes, new features, etc.)
  • Other (changes to the codebase, but not to examples)

Checklist

  • Example is testable in synthetic monitoring system, or lambda-test: false is added to example frontmatter
  • Example does not require third-party dependencies to be installed locally
  • Example is documented with comments throughout, in a Literate Programming style.

@thundergolfer thundergolfer merged commit 33591ea into main Jan 6, 2024
5 checks passed
@thundergolfer thundergolfer deleted the jonathon/comfy branch January 6, 2024 04:06
Comment on lines +134 to +147
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}",
},
)()
Copy link
Member

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

Copy link
Collaborator Author

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.

@hsiutayu
Copy link

hsiutayu commented Feb 8, 2024

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?

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.

3 participants