This commit is contained in:
2026-08-24 09:40:31 +08:00
parent 5199e3040f
commit 2bf7db6bb9
23 changed files with 51 additions and 105 deletions
-2
View File
@@ -44,7 +44,6 @@ func (a *App) Startup(ctx context.Context) {
a.ctx = ctx
// 设置 ONNX Runtime DLL 路径
// ort.SetSharedLibraryPath("onnxruntime.dll")
exeDir, _ := os.Executable()
println("exeDir", exeDir)
ort.SetSharedLibraryPath(filepath.Join(filepath.Dir(exeDir), "onnxruntime.dll"))
@@ -160,7 +159,6 @@ func (a *App) GormDB() (*gorm.DB, error) {
}
func (a *App) UploadImage(data []byte, filename string) Response {
println("UploadImage")
uploadsDir := publicImagePath
err := os.MkdirAll(uploadsDir, 0755)
if err != nil {