mirror of
https://github.com/SamueleLorefice/ComfySharp
synced 2026-01-15 13:33:40 +00:00
17 lines
507 B
C#
17 lines
507 B
C#
using System.Threading.Channels;
|
|
using ComfySharp;
|
|
|
|
Console.WriteLine("Setting Up testing for default comfyUI server running on localhost:8188");
|
|
var client = new ComfyClient("http://localhost:8188");
|
|
|
|
var info = await client.GetObjectInfo();
|
|
|
|
Console.WriteLine("Testing GetEmbeddings");
|
|
var embeddings = await client.GetEmbeddings();
|
|
|
|
for (int i = 0; i < embeddings.Length; i++) {
|
|
Console.WriteLine($"Embedding {i}: {embeddings[i]}");
|
|
}
|
|
|
|
Console.WriteLine("Testing UploadImage");
|
|
Console.ReadLine(); |