Spaces:
Running
Running
Refactor app.py to include lazy loading for images
Browse files
app.py
CHANGED
@@ -174,9 +174,8 @@ with demo:
|
|
174 |
with gr.Row():
|
175 |
with gr.Accordion("📙 Citation", open=False):
|
176 |
citation_button = gr.Textbox(
|
177 |
-
value=CITATION_BUTTON_TEXT,
|
178 |
label=CITATION_BUTTON_LABEL,
|
179 |
-
# lines=20,
|
180 |
elem_id="citation-button",
|
181 |
show_copy_button=True,
|
182 |
)
|
|
|
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 |
)
|