mirror of
https://github.com/SamueleLorefice/ComfySharp
synced 2026-01-15 02:55:48 +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();
|
||||
15
TestBed/TestBed.csproj
Normal file
15
TestBed/TestBed.csproj
Normal 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>
|
||||
Reference in New Issue
Block a user