chansung commited on
Commit
c2e0eb5
β€’
1 Parent(s): a7ff712

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -251,6 +251,7 @@ def set_paper(date, paper_title):
251
 
252
  return (
253
  gr.Markdown(f"# {selected_paper['title']}"), gr.Markdown(selected_paper["summary"]),
 
254
 
255
  gr.Markdown(f"### πŸ™‹ {selected_paper['0_question']}"),
256
  gr.Markdown(f"β†ͺ **(ELI5)** {selected_paper['0_answers:eli5']}"),
@@ -371,6 +372,7 @@ with gr.Blocks(css=STYLE, theme=gr.themes.Soft()) as demo:
371
 
372
  with gr.Column(scale=7):
373
  title = gr.Markdown(f"# {selected_paper['title']}")
 
374
  summary = gr.Markdown(f"{selected_paper['summary']}", elem_classes=["small-font"])
375
 
376
  with gr.Column(elem_id="chat_block", visible=False):
@@ -516,7 +518,7 @@ with gr.Blocks(css=STYLE, theme=gr.themes.Soft()) as demo:
516
  set_paper,
517
  [date_dd, papers_dd],
518
  [
519
- title, summary,
520
  basic_q_0, basic_q_eli5_0, basic_q_expert_0,
521
  depth_q_0, depth_q_eli5_0, depth_q_expert_0,
522
  breath_q_0, breath_q_eli5_0, breath_q_expert_0,
@@ -535,7 +537,7 @@ with gr.Blocks(css=STYLE, theme=gr.themes.Soft()) as demo:
535
  set_paper,
536
  [date_dd, papers_dd],
537
  [
538
- title, summary,
539
  basic_q_0, basic_q_eli5_0, basic_q_expert_0,
540
  depth_q_0, depth_q_eli5_0, depth_q_expert_0,
541
  breath_q_0, breath_q_eli5_0, breath_q_expert_0,
 
251
 
252
  return (
253
  gr.Markdown(f"# {selected_paper['title']}"), gr.Markdown(selected_paper["summary"]),
254
+ gr.Markdown("[![arXiv](https://img.shields.io/badge/arXiv-1234.56789-b31b1b.svg)](https://arxiv.org/abs/%s)" % selected_paper['arxiv_id'])
255
 
256
  gr.Markdown(f"### πŸ™‹ {selected_paper['0_question']}"),
257
  gr.Markdown(f"β†ͺ **(ELI5)** {selected_paper['0_answers:eli5']}"),
 
372
 
373
  with gr.Column(scale=7):
374
  title = gr.Markdown(f"# {selected_paper['title']}")
375
+ arxiv_link = gr.Markdown("[![arXiv](https://img.shields.io/badge/arXiv-1234.56789-b31b1b.svg)](https://arxiv.org/abs/%s)" % selected_paper['arxiv_id'])
376
  summary = gr.Markdown(f"{selected_paper['summary']}", elem_classes=["small-font"])
377
 
378
  with gr.Column(elem_id="chat_block", visible=False):
 
518
  set_paper,
519
  [date_dd, papers_dd],
520
  [
521
+ title, arxiv_link, summary,
522
  basic_q_0, basic_q_eli5_0, basic_q_expert_0,
523
  depth_q_0, depth_q_eli5_0, depth_q_expert_0,
524
  breath_q_0, breath_q_eli5_0, breath_q_expert_0,
 
537
  set_paper,
538
  [date_dd, papers_dd],
539
  [
540
+ title, arxiv_link, summary,
541
  basic_q_0, basic_q_eli5_0, basic_q_expert_0,
542
  depth_q_0, depth_q_eli5_0, depth_q_expert_0,
543
  breath_q_0, breath_q_eli5_0, breath_q_expert_0,