mirror of
https://github.com/SamueleLorefice/ComfySharp
synced 2026-01-15 04:13:42 +00:00
Initial commit
This commit is contained in:
17
TestBed/Program.cs
Normal file
17
TestBed/Program.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
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();
|
||||
Reference in New Issue
Block a user