Initial commit

This commit is contained in:
Samuele Lorefice
2023-11-09 05:04:51 +01:00
commit f400b78edf
9 changed files with 231 additions and 0 deletions

17
TestBed/Program.cs Normal file
View 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();

15
TestBed/TestBed.csproj Normal file
View File

@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\ComfySharp.csproj" />
<ProjectReference Include="..\ComfySharp\ComfySharp.csproj" />
</ItemGroup>
</Project>