eliolio commited on
Commit
2478fc7
1 Parent(s): 86c2bc6

add example

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -63,6 +63,12 @@ CSS = """
63
  }
64
  """
65
 
 
 
 
 
 
 
66
  def create_html_card(arxiv_link):
67
  paper_details = get_paperinfo_fromurls(arxiv_link)
68
  card_template.render(paper_details_iterator=paper_details)
@@ -93,6 +99,11 @@ with demo:
93
  button = gr.Button("Generate", variant="primary")
94
  with gr.Row():
95
  card = gr.HTML(elem_id="htel")
 
 
 
 
 
96
 
97
  with gr.Column():
98
  gr.Markdown("### Resources and inspirations", elem_id="ctr")
 
63
  }
64
  """
65
 
66
+ examples = [
67
+ [
68
+ "https://arxiv.org/abs/2208.14178v1",
69
+ ]
70
+ ]
71
+
72
  def create_html_card(arxiv_link):
73
  paper_details = get_paperinfo_fromurls(arxiv_link)
74
  card_template.render(paper_details_iterator=paper_details)
 
99
  button = gr.Button("Generate", variant="primary")
100
  with gr.Row():
101
  card = gr.HTML(elem_id="htel")
102
+ with gr.Row():
103
+ gr.Examples(
104
+ examples=examples,
105
+ inputs=[text],
106
+ )
107
 
108
  with gr.Column():
109
  gr.Markdown("### Resources and inspirations", elem_id="ctr")