File size: 1,741 Bytes
48fc275
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
"""All app-specific user defined configurations are defined here"""

import os
from dataclasses import dataclass

# import plotly.express as px


### define all plotting configuration here,
### should not be accessed and changed directly hence leading "__"
@dataclass
class __PlotConfig:
    """All plotting configurations are defined here"""

    # Available themes (templates):
    # ['ggplot2', 'seaborn', 'simple_white', 'plotly',
    #  'plotly_white', 'plotly_dark', 'presentation',
    #  'xgridoff', 'ygridoff', 'gridon', 'none']
    # theme = "plotly_dark"
    # cat_color_map = px.colors.qualitative.T10
    # cat_color_map_r = px.colors.qualitative.T10_r
    # cont_color_map = px.colors.sequential.amp
    # cont_color_map_r = px.colors.sequential.amp_r


### define all app-wide configuration here,
### should not be accessed and changed directly hence leading "__"
@dataclass
class __AppConfig:
    """app-wide configurations"""

    # get current working directory
    cwd = os.getcwd()
    banner_image = f"{cwd}/"
    logo_image = f"{cwd}/streamlit/assets/logo.svg"
    app_title = "Text Paraphraser"
    app_icon = f"{cwd}/streamlit/assets/st_title.png"
    app_short_desc = "πŸ€– AI powered paraphraser"
    md_about = f"{cwd}/streamlit//artifacts/about.md"
    max_access_count = 50
    # processed_data = f"{cwd}/artifacts/"
    # model_weights = f"{cwd}/artifacts/"
    # s3_model_file_uri = ""
    # s3_data_file_uri = ""
    sidebar_state = "expanded"  # collapsed
    layout = "centered"  # wide
    icon_question = "❓"
    icon_important = "🎯"
    icon_info = "ℹ️"
    icon_stop = "β›”"
    icon_about = "πŸ‘‹"


### make configs available to any module that imports this module
app_config = __AppConfig()