Comments (4)
Thanks for the response and I'm sorry for being unclear. This is the basic auth that I mean not the one implemented by comfy UI.
Is there a way to pass headers when loading the comfy server? Maybe something similar to this?
load(https://localhost:8188, headers={'Authorization': 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='})
from comfyscript.
As far as I know, the official ComfyUI server doesn't have any auth mechanism. Can you give an example of the basic auth you mentioned?
from comfyscript.
v0.4.4 is released. Now you can do it like this:
import aiohttp
load(Client('http://127.0.0.1:8188/', session_factory=lambda: aiohttp.ClientSession(
auth=aiohttp.BasicAuth('Aladdin', 'open sesame')
# auth=aiohttp.BasicAuth.decode('Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==')
# headers={'Authorization': 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='}
)))
See ClientSession
for more options.
from comfyscript.
Thank you! I will try this one.
from comfyscript.
Related Issues (20)
- Turn off transpiler option/transpile on command HOT 3
- I have installed the ComfyUI_Ib_CustomNodes Package. But can't seem to use the ImageToPIL Node HOT 2
- Pass configuration options when loading ComfyUI package? HOT 2
- ComfyUI embedded installation failure HOT 4
- Handling "UI-only" nodes HOT 12
- Is it possible to add auto-transpile to create a python script for running? HOT 2
- ipywidgets/gui from VSCode? HOT 20
- Ideas for getting the image preview associated with a Lora? HOT 1
- Error with Inspire HOT 2
- Save Image returns what? HOT 2
- Auto Queue HOT 16
- grab workflow from image HOT 7
- LoadImage - TypeError: Object of type Image is not JSON serializable HOT 2
- thoughts on idiomatic way of making xy grid? HOT 7
- Getting errors after sampler run, logs hidden HOT 2
- Thanks for all your help! Can I buy you a coffee/beer/tea? HOT 5
- See multiple images, but without multiple samplers HOT 5
- transpiler reusing variables that should be unique HOT 2
- New Loras downloaded, how to regenerate enumerations? HOT 1
- How to use it? This plugin is not show up in chrome.Is it the code editor as front replace web browser for comfyui? HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from comfyscript.