chansung commited on
Commit
deb91ab
β€’
1 Parent(s): 0232d9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -251,7 +251,10 @@ def set_paper(date, paper_title):
251
 
252
  return (
253
  gr.Markdown(f"# {selected_paper['title']}"),
254
- gr.Markdown("[![arXiv](https://img.shields.io/badge/arXiv-%s-b31b1b.svg)](https://arxiv.org/abs/%s)" % (selected_paper['arxiv_id'], selected_paper['arxiv_id'])),
 
 
 
255
  gr.Markdown(selected_paper["summary"]),
256
 
257
  gr.Markdown(f"### πŸ™‹ {selected_paper['0_question']}"),
@@ -373,7 +376,10 @@ with gr.Blocks(css=STYLE, theme=gr.themes.Soft()) as demo:
373
 
374
  with gr.Column(scale=7):
375
  title = gr.Markdown(f"# {selected_paper['title']}")
376
- arxiv_link = gr.Markdown("[![arXiv](https://img.shields.io/badge/arXiv-%s-b31b1b.svg)](https://arxiv.org/abs/%s)" % (selected_paper['arxiv_id'], selected_paper['arxiv_id']))
 
 
 
377
  summary = gr.Markdown(f"{selected_paper['summary']}", elem_classes=["small-font"])
378
 
379
  with gr.Column(elem_id="chat_block", visible=False):
 
251
 
252
  return (
253
  gr.Markdown(f"# {selected_paper['title']}"),
254
+ gr.Markdown(
255
+ "[![arXiv](https://img.shields.io/badge/arXiv-%s-b31b1b.svg)](https://arxiv.org/abs/%s)" % (selected_paper['arxiv_id'], selected_paper['arxiv_id']) + " "
256
+ "[![Paper page](https://huggingface.co/datasets/huggingface/badges/resolve/main/paper-page-sm.svg)](https://huggingface.co/papers/%s)" % selected_paper['arxiv_id']
257
+ ),
258
  gr.Markdown(selected_paper["summary"]),
259
 
260
  gr.Markdown(f"### πŸ™‹ {selected_paper['0_question']}"),
 
376
 
377
  with gr.Column(scale=7):
378
  title = gr.Markdown(f"# {selected_paper['title']}")
379
+ arxiv_link = gr.Markdown(
380
+ "[![arXiv](https://img.shields.io/badge/arXiv-%s-b31b1b.svg)](https://arxiv.org/abs/%s)" % (selected_paper['arxiv_id'], selected_paper['arxiv_id']) + " "
381
+ "[![Paper page](https://huggingface.co/datasets/huggingface/badges/resolve/main/paper-page-sm.svg)](https://huggingface.co/papers/%s)" % selected_paper['arxiv_id']
382
+ )
383
  summary = gr.Markdown(f"{selected_paper['summary']}", elem_classes=["small-font"])
384
 
385
  with gr.Column(elem_id="chat_block", visible=False):