This commit is contained in:
josc146 2023-07-09 12:10:14 +08:00
parent 750c91bd3e
commit aec6ad636a
2 changed files with 8 additions and 9 deletions

View File

@ -41,6 +41,14 @@ func (a *App) OnStartup(ctx context.Context) {
a.cmdPrefix = "cd " + a.exDir + " && " a.cmdPrefix = "cd " + a.exDir + " && "
} }
os.Mkdir(a.exDir+"models", os.ModePerm)
os.Mkdir(a.exDir+"lora-models", os.ModePerm)
os.Mkdir(a.exDir+"finetune/json2binidx_tool/data", os.ModePerm)
f, err := os.Create(a.exDir + "lora-models/train_log.txt")
if err == nil {
f.Close()
}
a.downloadLoop() a.downloadLoop()
watcher, err := fsnotify.NewWatcher() watcher, err := fsnotify.NewWatcher()

View File

@ -2,7 +2,6 @@ package main
import ( import (
"embed" "embed"
"os"
"runtime/debug" "runtime/debug"
"strings" "strings"
@ -35,14 +34,6 @@ func main() {
backend.CopyEmbed(cyacInfo) backend.CopyEmbed(cyacInfo)
backend.CopyEmbed(py) backend.CopyEmbed(py)
backend.CopyEmbed(finetune) backend.CopyEmbed(finetune)
os.Mkdir("models", os.ModePerm)
os.Mkdir("lora-models", os.ModePerm)
os.Mkdir("finetune/json2binidx_tool/data", os.ModePerm)
}
f, err := os.Create("lora-models/train_log.txt")
if err == nil {
f.Close()
} }
// Create an instance of the app structure // Create an instance of the app structure