broadfield commited on
Commit
93a5f4b
·
verified ·
1 Parent(s): b46d61b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -58,7 +58,7 @@ function closefn(inn) {
58
  }
59
  function readfn(inn) {
60
  console.log(inn);
61
- var frame_off = document.getElementById("read" + String(inn));
62
  frame_off.value = inn;
63
  }
64
  </script>
@@ -117,7 +117,7 @@ with gr.Blocks(css=style,head=head) as b:
117
  html_out=gr.HTML()
118
  json_out=gr.JSON()
119
 
120
- hid_start=gr.Number(elem_id='read',step=1,value=0,visible=True, interactive=True)
121
  hid_start=gr.Number(step=1,value=0,visible=False, interactive=False)
122
 
123
  next_btn.click(next_show,[hid_start],[prev_btn,hid_start]).then(show_num,hid_start,show_html).then(search,[query,num,hid_start],[html_out])
 
58
  }
59
  function readfn(inn) {
60
  console.log(inn);
61
+ var frame_off = document.getElementById("readit" + String(inn));
62
  frame_off.value = inn;
63
  }
64
  </script>
 
117
  html_out=gr.HTML()
118
  json_out=gr.JSON()
119
 
120
+ hid_start=gr.Number(elem_id='readit',step=1,value=0,visible=True, interactive=True)
121
  hid_start=gr.Number(step=1,value=0,visible=False, interactive=False)
122
 
123
  next_btn.click(next_show,[hid_start],[prev_btn,hid_start]).then(show_num,hid_start,show_html).then(search,[query,num,hid_start],[html_out])