CShorten's picture
Update app.py
47f5127
raw
history blame
672 Bytes
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()