CShorten's picture
Create app.py
1856658
raw
history blame
704 Bytes
!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()