import gradio as gr | |
# Citation information | |
CITATION_LABEL = "BibTeX citation for ClimateQ&A" | |
CITATION_TEXT = r"""@misc{climateqa, | |
author={Théo Alves Da Costa, Timothée Bohe}, | |
title={ClimateQ&A, AI-powered conversational assistant for climate change and biodiversity loss}, | |
year={2024}, | |
howpublished= {\url{https://climateqa.com}}, | |
} | |
@software{climateqa, | |
author = {Théo Alves Da Costa, Timothée Bohe}, | |
publisher = {ClimateQ&A}, | |
title = {ClimateQ&A, AI-powered conversational assistant for climate change and biodiversity loss}, | |
} | |
""" | |
def create_about_tab(): | |
with gr.Tab("About", elem_classes="max-height other-tabs"): | |
with gr.Row(): | |
with gr.Column(scale=1): | |
gr.Markdown( | |
""" | |
### More info | |
- See more info at [https://climateqa.com](https://climateqa.com/docs/intro/) | |
- Feedbacks on this [form](https://forms.office.com/e/1Yzgxm6jbp) | |
### Citation | |
""" | |
) | |
with gr.Accordion(CITATION_LABEL, elem_id="citation", open=False): | |
gr.Textbox( | |
value=CITATION_TEXT, | |
label="", | |
interactive=False, | |
show_copy_button=True, | |
lines=len(CITATION_TEXT.split('\n')), | |
) |