broadfield commited on
Commit
7c2f2b2
·
verified ·
1 Parent(s): f48cb68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -34,14 +34,14 @@ def search(q,rn):
34
  html+=f"<div><a href='{pdflink}' target='_blank'>{pdflink}</a></div>"
35
  html+="</div>"
36
  return(json.dumps(cont,indent=4)),html
37
- with gr.Blocks(css=style) as b:
38
  with gr.Group():
39
  with gr.Row():
40
  query=gr.Textbox(label="Query")
41
  num=gr.Number(label="Count",step=1,value=10)
42
  sub=gr.Button()
43
- html_out=gr.Button()
44
  json_out=gr.JSON()
45
  sub.click(search,[query,num],[json_out,html_out])
46
- b.load(None,None,None,js=jscript)
47
  b.launch()
 
34
  html+=f"<div><a href='{pdflink}' target='_blank'>{pdflink}</a></div>"
35
  html+="</div>"
36
  return(json.dumps(cont,indent=4)),html
37
+ with gr.Blocks(css=style,js=jscript) as b:
38
  with gr.Group():
39
  with gr.Row():
40
  query=gr.Textbox(label="Query")
41
  num=gr.Number(label="Count",step=1,value=10)
42
  sub=gr.Button()
43
+ html_out=gr.HTML()
44
  json_out=gr.JSON()
45
  sub.click(search,[query,num],[json_out,html_out])
46
+ b.load(None,None,None)
47
  b.launch()