Spaces:
Runtime error
Runtime error
!pip install arxiv > /dev/null | |
import gradio as gr | |
import arxiv | |
search = arxiv.Search( | |
query = "cs.LG", | |
max_results = 50, | |
sort_by = arxiv.SortCriterion.SubmittedDate | |
) | |
with gr.Blocks() as demo: | |
gr.Markdown("<center><h1>My ArXiv</h1></center>") | |
with gr.Column(): | |
for arxiv_paper in search.results(): | |
with gr.Column(): | |
with gr.Column(): | |
gr.Markdown("<center><h3>" + arxiv_paper.title + "</h3></center>") | |
gr.Markdown(arxiv_paper.summary) | |
with gr.Row(): | |
button = gr.Button("More like this! π") | |
#button.click(flip_image, inputs=image_input, outputs=image_output) | |
gr.Button("Less like this! π") | |
demo.launch() |