chansung commited on
Commit
66f4eb1
β€’
1 Parent(s): deb91ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -8
app.py CHANGED
@@ -252,8 +252,10 @@ def set_paper(date, paper_title):
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
 
@@ -376,10 +378,14 @@ with gr.Blocks(css=STYLE, theme=gr.themes.Soft()) as demo:
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):
@@ -525,7 +531,7 @@ with gr.Blocks(css=STYLE, theme=gr.themes.Soft()) as demo:
525
  set_paper,
526
  [date_dd, papers_dd],
527
  [
528
- title, arxiv_link, summary,
529
  basic_q_0, basic_q_eli5_0, basic_q_expert_0,
530
  depth_q_0, depth_q_eli5_0, depth_q_expert_0,
531
  breath_q_0, breath_q_eli5_0, breath_q_expert_0,
@@ -544,7 +550,7 @@ with gr.Blocks(css=STYLE, theme=gr.themes.Soft()) as demo:
544
  set_paper,
545
  [date_dd, papers_dd],
546
  [
547
- title, arxiv_link, summary,
548
  basic_q_0, basic_q_eli5_0, basic_q_expert_0,
549
  depth_q_0, depth_q_eli5_0, depth_q_expert_0,
550
  breath_q_0, breath_q_eli5_0, breath_q_expert_0,
 
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
+ ),
257
+ gr.Markdown(
258
+ "[![Paper page](https://huggingface.co/datasets/huggingface/badges/resolve/main/paper-page-md.svg)](https://huggingface.co/papers/%s)" % selected_paper['arxiv_id']
259
  ),
260
  gr.Markdown(selected_paper["summary"]),
261
 
 
378
 
379
  with gr.Column(scale=7):
380
  title = gr.Markdown(f"# {selected_paper['title']}")
381
+ with gr.Row():
382
+ arxiv_link = gr.Markdown(
383
+ "[![arXiv](https://img.shields.io/badge/arXiv-%s-b31b1b.svg)](https://arxiv.org/abs/%s)" % (selected_paper['arxiv_id'], selected_paper['arxiv_id'])
384
+ )
385
+ hf_paper_link = gr.Markdown(
386
+ "[![Paper page](https://huggingface.co/datasets/huggingface/badges/resolve/main/paper-page-md.svg)](https://huggingface.co/papers/%s)" % selected_paper['arxiv_id']
387
+ )
388
+
389
  summary = gr.Markdown(f"{selected_paper['summary']}", elem_classes=["small-font"])
390
 
391
  with gr.Column(elem_id="chat_block", visible=False):
 
531
  set_paper,
532
  [date_dd, papers_dd],
533
  [
534
+ title, arxiv_link, hf_paper_link, summary,
535
  basic_q_0, basic_q_eli5_0, basic_q_expert_0,
536
  depth_q_0, depth_q_eli5_0, depth_q_expert_0,
537
  breath_q_0, breath_q_eli5_0, breath_q_expert_0,
 
550
  set_paper,
551
  [date_dd, papers_dd],
552
  [
553
+ title, arxiv_link, hf_paper_link, summary,
554
  basic_q_0, basic_q_eli5_0, basic_q_expert_0,
555
  depth_q_0, depth_q_eli5_0, depth_q_expert_0,
556
  breath_q_0, breath_q_eli5_0, breath_q_expert_0,