brian-xetdata commited on
Commit
8c6d4fe
·
1 Parent(s): 414e6ad

Fixing button clicks

Browse files
Files changed (1) hide show
  1. proxy.py +2 -4
proxy.py CHANGED
@@ -46,13 +46,11 @@ def chooser():
46
  <title>Netron</title>
47
  <script type="text/javascript">
48
  function setFileBefore() {
49
- console.log('setFileBefore');
50
  var url = document.getElementById('urlbefore').value;
51
  var iframe = document.getElementById('netronbefore');
52
  iframe.src = '/netron?url=' + url;
53
  }
54
  function setFileAfter() {
55
- console.log('setFileAfter');
56
  var url = document.getElementById('urlafter').value;
57
  var iframe = document.getElementById('netronafter');
58
  iframe.src = '/netron?url=' + url;
@@ -63,14 +61,14 @@ def chooser():
63
  <div id="before" style="width: 50%; height: 100%; border-right: 1px solid gray">
64
  <div style="width: 100%; display: flex; flex-direction: row; justify-content: space-between;">
65
  <input type="text" id="urlbefore" value="https://huggingface.co/brianronan/chessbot-test/resolve/main/chessbot.pb" style="width: calc(100% - 100px); height: 30px;"/>
66
- <button type="submit" style="height: 30px; width: 100px;" onClick="setFileBefore">Load</button>
67
  </div>
68
  <iframe id="netronbefore" src="/netron?url=https://huggingface.co/brianronan/chessbot-test/resolve/main/chessbot.pb" style="width: 100%; height: calc(100% - 30px); border: none;"></iframe>
69
  </div>
70
  <div id="after" style="width: 50%; height: 100%;">
71
  <div style="width: 100%; display: flex; flex-direction: row; justify-content: space-between;">
72
  <input type="text" id="urlafter" value="https://huggingface.co/brianronan/chessbot-test/resolve/updated/chessbot.pb" style="width: calc(100% - 100px); height: 30px;"/>
73
- <button type="submit" style="height: 30px; width: 100px;" onClick="setFileAfter">Load</button>
74
  </div>
75
  <iframe id="netronafter" src="/netron?url=https://huggingface.co/brianronan/chessbot-test/resolve/updated/chessbot.pb" style="width: 100%; height: calc(100% - 30px); border: none;"></iframe>
76
  </div>
 
46
  <title>Netron</title>
47
  <script type="text/javascript">
48
  function setFileBefore() {
 
49
  var url = document.getElementById('urlbefore').value;
50
  var iframe = document.getElementById('netronbefore');
51
  iframe.src = '/netron?url=' + url;
52
  }
53
  function setFileAfter() {
 
54
  var url = document.getElementById('urlafter').value;
55
  var iframe = document.getElementById('netronafter');
56
  iframe.src = '/netron?url=' + url;
 
61
  <div id="before" style="width: 50%; height: 100%; border-right: 1px solid gray">
62
  <div style="width: 100%; display: flex; flex-direction: row; justify-content: space-between;">
63
  <input type="text" id="urlbefore" value="https://huggingface.co/brianronan/chessbot-test/resolve/main/chessbot.pb" style="width: calc(100% - 100px); height: 30px;"/>
64
+ <button type="submit" style="height: 30px; width: 100px;" onClick="setFileBefore()">Load</button>
65
  </div>
66
  <iframe id="netronbefore" src="/netron?url=https://huggingface.co/brianronan/chessbot-test/resolve/main/chessbot.pb" style="width: 100%; height: calc(100% - 30px); border: none;"></iframe>
67
  </div>
68
  <div id="after" style="width: 50%; height: 100%;">
69
  <div style="width: 100%; display: flex; flex-direction: row; justify-content: space-between;">
70
  <input type="text" id="urlafter" value="https://huggingface.co/brianronan/chessbot-test/resolve/updated/chessbot.pb" style="width: calc(100% - 100px); height: 30px;"/>
71
+ <button type="submit" style="height: 30px; width: 100px;" onClick="setFileAfter()">Load</button>
72
  </div>
73
  <iframe id="netronafter" src="/netron?url=https://huggingface.co/brianronan/chessbot-test/resolve/updated/chessbot.pb" style="width: 100%; height: calc(100% - 30px); border: none;"></iframe>
74
  </div>