pufanyi commited on
Commit
2941860
β€’
1 Parent(s): 67d6e6b

Refactor app.py to include citation button with markdown

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -173,12 +173,7 @@ with demo:
173
 
174
  with gr.Row():
175
  with gr.Accordion("πŸ“™ Citation", open=False):
176
- citation_button = gr.Textbox(
177
- value=gr.Markdown("```bib\n" + CITATION_BUTTON_TEXT + "\n```"),
178
- label=CITATION_BUTTON_LABEL,
179
- elem_id="citation-button",
180
- show_copy_button=True,
181
- )
182
 
183
  scheduler = BackgroundScheduler()
184
  scheduler.add_job(restart_space, "interval", seconds=1800)
 
173
 
174
  with gr.Row():
175
  with gr.Accordion("πŸ“™ Citation", open=False):
176
+ gr.Markdown("```bib\n" + CITATION_BUTTON_TEXT + "\n```")
 
 
 
 
 
177
 
178
  scheduler = BackgroundScheduler()
179
  scheduler.add_job(restart_space, "interval", seconds=1800)