santanche commited on
Commit
7df4657
·
1 Parent(s): f8f9b79

fix (example): replace post back

Browse files
Files changed (1) hide show
  1. app/static/gallery/factory-ai.html +2 -2
app/static/gallery/factory-ai.html CHANGED
@@ -14,7 +14,7 @@
14
  <div style="width: 100%; height: 35%; background-color: grey; text-align: center">
15
  <div style="font-size: larger; font-weight: bold;">Control Panel</div>
16
  <span id="alert" style="width: 20%; display: inline-block; vertical-align: middle">
17
- <state-pane-oid initial="N">
18
  <image-oid id="N" source="assets:images/light-green.svg"></image-oid>
19
  <image-oid id="P" source="assets:images/light-red.svg"></image-oid>
20
  </state-pane-oid>
@@ -35,7 +35,7 @@
35
  </span>
36
  <span id="ml-proxy">
37
  <rest-oid custom="factory-predictor"
38
- subscribe="predictor/train~get/train;predictor/temperature~get/temperature;predictor/pressure~get/pressure"
39
  publish="dispatch~update/alert">
40
  </rest-oid>
41
  </span>
 
14
  <div style="width: 100%; height: 35%; background-color: grey; text-align: center">
15
  <div style="font-size: larger; font-weight: bold;">Control Panel</div>
16
  <span id="alert" style="width: 20%; display: inline-block; vertical-align: middle">
17
+ <state-pane-oid initial="N" subscribe="update/alert~state">
18
  <image-oid id="N" source="assets:images/light-green.svg"></image-oid>
19
  <image-oid id="P" source="assets:images/light-red.svg"></image-oid>
20
  </state-pane-oid>
 
35
  </span>
36
  <span id="ml-proxy">
37
  <rest-oid custom="factory-predictor"
38
+ subscribe="predictor/train~post/train;predictor/temperature~post/temperature;predictor/pressure~post/pressure"
39
  publish="dispatch~update/alert">
40
  </rest-oid>
41
  </span>