Update server

This commit is contained in:
2019-03-27 16:02:53 +01:00
parent b3f3417335
commit 94d9500598
5 changed files with 57 additions and 19 deletions
+8
View File
@@ -0,0 +1,8 @@
extends base
block content
section.section
.container
.message.is-danger
.message-header An error occured
.message-body= message
+31 -3
View File
@@ -1,14 +1,42 @@
extends base
block content
section.section
.container
.columns.is-centered
.column.is-narrow.is-desktop
.column.is-6.is-desktop
form(action="upload-target", method="POST", encType="multipart/form-data")
.field
label.label Name
p.content.has-text-justified
| This name will be the name you will see on
| the leaderboard. It also corresponds to the
| name of the module your AI will be on the
| server.
p.content.has-text-justified
| You can use an already exisiting name to
| replace it with a new version of your AI.
p.content.has-text-justified
| You could also erase other people's AI, but
| please, don't do it, because I would be sad
| 😢
input.input(type="text", name="name", placeholder="Name of your AI")
.field
label.label Archive
p.content.has-text-justified
| The archive to upload needs to contain a file
| named <code>ai.py</code> which must contain a
| class named <code>Ai</code> which must contain
| a constructor that takes no arguments (other
| than self or optional arguments).
p.content.has-text-justified
| It may also contain more files, such as
| binary files with neural network weights, or
| such as other python modules.
p.content.has-text-justified
| Please note that this archive must not
| contain a directory, it must only contain the
| files.
.file.has-name
label.file-label
input.file-input(type="file", name="archive")
@@ -17,6 +45,6 @@ block content
i.fas.fa-upload
span.file-label Choose a file…
span.file-name
.control
button.button.is-link Submit
.field
input.button.is-link(type="submit", value="Submit")