hugo1234 commited on
Commit
066e9ee
1 Parent(s): f6d5624

Create presets.py

Browse files
Files changed (1) hide show
  1. presets.py +86 -0
presets.py ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding:utf-8 -*-
2
+ import gradio as gr
3
+
4
+
5
+ title = """<h1 align="left" style="min-width:200px; margin-top:0;"> KI am LI </h1>"""
6
+ description_top = """\
7
+ <div align="left">
8
+ <p> Hinterlegtes KI-Model: EleutherAI/gpt-neo-1.3B</p>
9
+ <p>
10
+ Disclaimer: Das KI-Model, welches hier verwendet wird, kommt vom Hugging Face Model-Hub und ist ein Open-Source Model.
11
+ Diese Demo darf nicht für komerzielle genutzt werden!
12
+ Der Output des Models ist nicht zensiert und die Authoren der KI stimmen nicht unbedingt mit den Inhalten überein.
13
+ Gebrauch auf eigenes Risiko.
14
+ </p >
15
+ </div>
16
+ """
17
+ description = """\
18
+ <div align="center" style="margin:16px 0">
19
+ Diese Demo setzt auf auf dem Open-Source Model 'EleutherAI/gpt-neo-1.3B' von HuggingChat.
20
+ </div>
21
+ """
22
+ CONCURRENT_COUNT = 100
23
+
24
+
25
+ ALREADY_CONVERTED_MARK = "<!-- ALREADY CONVERTED BY PARSER. -->"
26
+
27
+ small_and_beautiful_theme = gr.themes.Soft(
28
+ primary_hue=gr.themes.Color(
29
+ c50="#02C160",
30
+ c100="rgba(2, 193, 96, 0.2)",
31
+ c200="#02C160",
32
+ c300="rgba(2, 193, 96, 0.32)",
33
+ c400="rgba(2, 193, 96, 0.32)",
34
+ c500="rgba(2, 193, 96, 1.0)",
35
+ c600="rgba(2, 193, 96, 1.0)",
36
+ c700="rgba(2, 193, 96, 0.32)",
37
+ c800="rgba(2, 193, 96, 0.32)",
38
+ c900="#02C160",
39
+ c950="#02C160",
40
+ ),
41
+ secondary_hue=gr.themes.Color(
42
+ c50="#576b95",
43
+ c100="#576b95",
44
+ c200="#576b95",
45
+ c300="#576b95",
46
+ c400="#576b95",
47
+ c500="#576b95",
48
+ c600="#576b95",
49
+ c700="#576b95",
50
+ c800="#576b95",
51
+ c900="#576b95",
52
+ c950="#576b95",
53
+ ),
54
+ neutral_hue=gr.themes.Color(
55
+ name="gray",
56
+ c50="#f9fafb",
57
+ c100="#f3f4f6",
58
+ c200="#e5e7eb",
59
+ c300="#d1d5db",
60
+ c400="#B2B2B2",
61
+ c500="#808080",
62
+ c600="#636363",
63
+ c700="#515151",
64
+ c800="#393939",
65
+ c900="#272727",
66
+ c950="#171717",
67
+ ),
68
+ radius_size=gr.themes.sizes.radius_sm,
69
+ ).set(
70
+ button_primary_background_fill="#06AE56",
71
+ button_primary_background_fill_dark="#06AE56",
72
+ button_primary_background_fill_hover="#07C863",
73
+ button_primary_border_color="#06AE56",
74
+ button_primary_border_color_dark="#06AE56",
75
+ button_primary_text_color="#FFFFFF",
76
+ button_primary_text_color_dark="#FFFFFF",
77
+ button_secondary_background_fill="#F2F2F2",
78
+ button_secondary_background_fill_dark="#2B2B2B",
79
+ button_secondary_text_color="#393939",
80
+ button_secondary_text_color_dark="#FFFFFF",
81
+ # background_fill_primary="#F7F7F7",
82
+ # background_fill_primary_dark="#1F1F1F",
83
+ block_title_text_color="*primary_500",
84
+ block_title_background_fill="*primary_100",
85
+ input_background_fill="#F6F6F6",
86
+ )