import gradio as gr
from dotenv import load_dotenv
import os
load_dotenv()
PATH = os.getcwd() + "/"
PATH_ASSETS = os.getenv('PATH_ASSETS')
PATH_ICONS = PATH + PATH_ASSETS + "icons/"
credits_text = """
# Credits
This work stemmed from a fruitful collaboration between SDSC and FIWI.
## Scientific Expertise : FIWI from UniBE
From the [Institute for Fish and Wildlife Health, University of Bern](https://www.fiwi.vetsuisse.unibe.ch)
- **Isabelle Wethli**
- **Dr. Mirjam Pewsner**
- **Dr. Saskia Keller**
## Front End Development: SDSC
From the [Swiss Data Science Center](https://www.datascience.ch)
- **Carlos Viviar Rios**
- **Laure Vancauwenberghe**
## How to Contact Us?
Please reach out to FIWI via [their contacts](https://www.fiwi.vetsuisse.unibe.ch/about_us/team/index_eng.html).
## Special Thanks
- **Vogelwarte** for their advice, especially Samuel Wechsler.
- **Biolovision SA**, providers of **ornitho.ch**, for their collaboration: circumstances are matched to their current data collection schema on ornitho.ch
"""
icons_text = """
### Icons' Attributions
(scroll to see all)
Biolovision for the circumstances icons.
flying-doves-group: Animal icons created by Freepik - Flaticon
Pigeon: Bird icons created by Freepik - Flaticon
Bird: Bird icons created by PLANBSTUDIO - Flaticon
Medical app: Health icons created by Smashicons - Flaticon
Pin: Google maps icons created by Creatype - Flaticon
Cardiograms: Medical icons created by Freepik - Flaticon
Swallow: Swallow icons created by Freepik - Flaticon
Chicken: Chicken icons created by Freepik - Flaticon
eye: Healthcare and medical icons created by juicy_fish - Flaticon
neuron: Neuron icons created by manshagraphics - Flaticon
impact: Consequence icons created by Awicon - Flaticon
schedule: Follow up icons created by iconsitee - Flaticon
Effective: Cog icons created by monkik - Flaticon
correct: Terminé icônes créées par kliwir art - Flaticon
supprimer: Faux icônes créées par hqrloveq - Flaticon
balai-magique: La magie icônes créées par Freepik - Flaticon
contact-information: Contact information icons created by Freepik - Flaticon
help: Help icons created by Freepik - Flaticon
question: Question icons created by Freepik - Flaticon
"""
with gr.Blocks(theme='shivi/calm_seafoam') as about:
with gr.Row(scale = 1):
gr.Image(PATH_ICONS+"sdsc.png",
height=200,
interactive=False,
show_fullscreen_button = False, show_share_button=False,
show_download_button=False, show_label=False)
gr.Image(PATH_ICONS+"fiwi.png",
height=200,
interactive=False,
show_fullscreen_button = False, show_share_button=False,
show_download_button=False, show_label=False)
gr.Markdown(credits_text, show_label=False)
gr.Markdown(icons_text, show_label=False, height=100)