Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
| 44 |
json_out=gr.JSON()
|
| 45 |
sub.click(search,[query,num],[json_out,html_out])
|
| 46 |
-
b.load(None,None,None
|
| 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()
|