File size: 672 Bytes
1856658
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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()