Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,10 +17,13 @@ style="""
|
|
| 17 |
border-radius: 5px;
|
| 18 |
}
|
| 19 |
"""
|
| 20 |
-
|
|
|
|
|
|
|
| 21 |
function run(e) {
|
| 22 |
console.log(e);
|
| 23 |
}
|
|
|
|
| 24 |
"""
|
| 25 |
def search(q,rn):
|
| 26 |
api="http://export.arxiv.org/api/query?search_query=SQ&start=0&max_results=MR"
|
|
@@ -35,7 +38,7 @@ def search(q,rn):
|
|
| 35 |
html+=f"<div><a href='{pdflink}' target='_blank'>{pdflink}</a></div>"
|
| 36 |
html+="</div>"
|
| 37 |
return(json.dumps(cont,indent=4)),html
|
| 38 |
-
with gr.Blocks(css=style,
|
| 39 |
with gr.Group():
|
| 40 |
with gr.Row():
|
| 41 |
query=gr.Textbox(label="Query")
|
|
|
|
| 17 |
border-radius: 5px;
|
| 18 |
}
|
| 19 |
"""
|
| 20 |
+
|
| 21 |
+
head = f"""
|
| 22 |
+
<script>
|
| 23 |
function run(e) {
|
| 24 |
console.log(e);
|
| 25 |
}
|
| 26 |
+
</script>
|
| 27 |
"""
|
| 28 |
def search(q,rn):
|
| 29 |
api="http://export.arxiv.org/api/query?search_query=SQ&start=0&max_results=MR"
|
|
|
|
| 38 |
html+=f"<div><a href='{pdflink}' target='_blank'>{pdflink}</a></div>"
|
| 39 |
html+="</div>"
|
| 40 |
return(json.dumps(cont,indent=4)),html
|
| 41 |
+
with gr.Blocks(css=style,head=head) as b:
|
| 42 |
with gr.Group():
|
| 43 |
with gr.Row():
|
| 44 |
query=gr.Textbox(label="Query")
|