JSON models now fully integrated, added BackgroundTaskManager

This commit is contained in:
N00MKRAD
2021-05-17 16:09:19 +02:00
parent dd554a5033
commit ed2a2257ca
12 changed files with 167 additions and 41 deletions

View File

@@ -1,5 +1,6 @@
using Flowframes.Data;
using Flowframes.IO;
using Flowframes.Main;
using Flowframes.OS;
using System;
using System.Collections.Generic;
@@ -41,9 +42,7 @@ namespace Flowframes.UI
try
{
string pkgPath = Path.Combine(Paths.GetPkgPath(), ai.pkgDir);
string modelsFile = Path.Combine(pkgPath, "models.json");
ModelCollection modelCollection = new ModelCollection(ai, modelsFile);
ModelCollection modelCollection = AiModels.GetModels(ai);
for (int i = 0; i < modelCollection.models.Count; i++)
{