File size: 1,041 Bytes
f51c1fd
 
1bf4da3
f51c1fd
 
 
 
 
 
 
aa6222e
 
f51c1fd
 
aa6222e
b4828f0
f51c1fd
 
aa6222e
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""
File: description.py
Author: Elena Ryumina and Dmitry Ryumin
Description: Project description for the Gradio app.
License: MIT License
"""

# Importing necessary components for the Gradio app
from app.config import config_data

TEMPLATE = """\
<h1><a href="https://github.com/aimclub/OCEANAI" target="_blank">OCEAN-AI</a> {description}.</h1>

<div class="app-flex-container">
    <img src="https://img.shields.io/badge/version-v{version}-rc0" alt="{version_label}">
    <a href='https://github.com/DmitryRyumin/OCEANAI' target='_blank'><img src='https://img.shields.io/github/stars/DmitryRyumin/OCEANAI?style=flat' alt='GitHub' /></a>
</div>
"""

DESCRIPTIONS = [
    TEMPLATE.format(
        description=config_data.InformationMessages_DESCRIPTIONS[0],
        version=config_data.AppSettings_APP_VERSION,
        version_label="Version",
    ),
    TEMPLATE.format(
        description=config_data.InformationMessages_DESCRIPTIONS[1],
        version=config_data.AppSettings_APP_VERSION,
        version_label="ВСрсия",
    ),
]