From 4b38e15daf8463aa0a7d652d89b4333bd6428d09 Mon Sep 17 00:00:00 2001 From: youngsuKim-CSUSB <81013158+youngsuKim-CSUSB@users.noreply.github.com> Date: Mon, 20 Jun 2022 22:38:18 -0700 Subject: [PATCH] test htmls --- page.html | 4 ++-- spawn.html | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/page.html b/page.html index 5bb3fc1..0e96793 100644 --- a/page.html +++ b/page.html @@ -1,7 +1,7 @@ {% extends "templates/page.html" %} -{% set extra_resources = {'n_gpus' : 0} %} -{% set _ = extra_resources.__setitem__('n_gpus', 1) %} +{% set extra_resources = {'n_gpus' : 1, 'n_cpus' : 1} %} +{% set _ = extra_resources.__setitem__('n_gpus', 0) %} {% block footer %} CSUSB ITS/ATI diff --git a/spawn.html b/spawn.html index c3985dd..1781f41 100644 --- a/spawn.html +++ b/spawn.html @@ -5,8 +5,9 @@ {% endblock %} {% block heading %} -<p>Number of GPUs: {{ extra_resources.n_gpus }}</p> -<p>Username {{ user }} </p> +<p>Number of GPUs: {{ extra_resources.n_gpus }} <br/></p> +<p>Number of CPUs: {{ extra_resources.n_cpus }}</p> +<p>User info: {{ user }} </p> <label for="gpus">GPUs</label> <input class="form-control input-lg" type="range" name="gpus" value="{{ extra_resources.n_gpus }}" min="0" max="4" oninput="this.nextElementSibling.value = this.value"/> <output>{{ extra_resources.n_gpus }}</output> -- GitLab