We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Not sure why this is happening, using the examples..
import { v4 as uuidv4 } from 'uuid';
import { ComfyUIClient } from 'comfy-ui-client'; import type { Prompt } from 'comfy-ui-client';
// The ComfyUI server address const SERVER_ADDRESS = '127.0.0.1:8188';
export const txt2img = async ( prompt: Prompt, outputDir: string, ): Promise => { // Create client ID const clientId = uuidv4();
// Create client const client = new ComfyUIClient(SERVER_ADDRESS, clientId);
// Connect to server await client.connect();
// Get images const images = await client.getImages(prompt);
// Save images to file await client.saveImages(images, outputDir);
// Disconnect await client.disconnect(); };
The text was updated successfully, but these errors were encountered:
This is a full working demo around the code you provided. It's not an issue with this library. client_demo.zip
Sorry, something went wrong.
No branches or pull requests
Not sure why this is happening, using the examples..
import { v4 as uuidv4 } from 'uuid';
import { ComfyUIClient } from 'comfy-ui-client';
import type { Prompt } from 'comfy-ui-client';
// The ComfyUI server address
const SERVER_ADDRESS = '127.0.0.1:8188';
export const txt2img = async (
prompt: Prompt,
outputDir: string,
): Promise => {
// Create client ID
const clientId = uuidv4();
// Create client
const client = new ComfyUIClient(SERVER_ADDRESS, clientId);
// Connect to server
await client.connect();
// Get images
const images = await client.getImages(prompt);
// Save images to file
await client.saveImages(images, outputDir);
// Disconnect
await client.disconnect();
};
The text was updated successfully, but these errors were encountered: