chansung commited on
Commit
b080e86
β€’
1 Parent(s): deee37e

Update app.py

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