feat: closes #22

This commit is contained in:
2023-09-29 13:27:43 +01:00
parent dfa62118de
commit bc948d4796
4 changed files with 46 additions and 13 deletions

View File

@@ -289,7 +289,12 @@
{{ end }}
{{ define "run-model-card" }}
<form hx-headers='{"REQUEST-TYPE": "html"}' enctype="multipart/form-data" hx-post="/models/run">
<form hx-headers='{"REQUEST-TYPE": "html"}' enctype="multipart/form-data" hx-post="/models/run" hx-swap="outerHTML">
{{ if .Result }}
<div>
Img Class: {{.Result}}
</div>
{{ end }}
<input type="hidden" name="id" value={{.Model.Id}} />
<fieldset class="file-upload" >
<label for="file">Image</label>