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("

My ArXiv

") with gr.Column(): for arxiv_paper in search.results(): with gr.Column(): with gr.Column(): gr.Markdown("

" + arxiv_paper.title + "

") 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()