From 22268919e46c5958de84993bbe2a02f9f9f366fd Mon Sep 17 00:00:00 2001
From: youngsukim-csusb <youngsu.kim@csusb.edu>
Date: Mon, 20 Jun 2022 17:27:22 -0700
Subject: [PATCH] test spawn

---
 page.html  | 3 +--
 spawn.html | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/page.html b/page.html
index 477b2f5..9ff768d 100644
--- a/page.html
+++ b/page.html
@@ -1,5 +1,4 @@
 {% extends "templates/page.html" %}
 
 {% set extra_resources = {'n_gpus' : 3} %}
-
-extra_resources.update = {'n_gpus' : 2}
\ No newline at end of file
+extra_resources.update = ({'n_gpus' : 2})
\ No newline at end of file
diff --git a/spawn.html b/spawn.html
index ff9cbea..e106482 100644
--- a/spawn.html
+++ b/spawn.html
@@ -8,7 +8,7 @@
 {% block heading %}
 <p>Number of GPUs: {{ extra_resources.n_gpus }}</p>
 <label for="gpus">GPUs</label>
-<input class="form-control input-lg" type="range" name="gpus" value="{{ n_gpus }}" min="0" max="4" oninput="this.nextElementSibling.value = this.value"/>
+<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>{{ n_gpus }}</output>  
 <br/>
 <label for="cores">CPUS</label>
-- 
GitLab