Spaces:
Running
Running
Refactor app.py to include citation button with markdown
Browse files
app.py
CHANGED
@@ -173,12 +173,7 @@ with demo:
|
|
173 |
|
174 |
with gr.Row():
|
175 |
with gr.Accordion("π Citation", open=False):
|
176 |
-
|
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)
|