JohnSmith9982 commited on
Commit
d8e2a45
1 Parent(s): b271693

Upload 23 files

Browse files
Files changed (1) hide show
  1. app.py +61 -1
app.py CHANGED
@@ -58,7 +58,67 @@ with open("custom.css", "r", encoding="utf-8") as f:
58
  customCSS = f.read()
59
 
60
  with gr.Blocks(
61
- css=customCSS
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  ) as demo:
63
  history = gr.State([])
64
  token_count = gr.State([])
 
58
  customCSS = f.read()
59
 
60
  with gr.Blocks(
61
+ css=customCSS,
62
+ theme=gr.themes.Soft(
63
+ primary_hue=gr.themes.Color(
64
+ c50="#02C160",
65
+ c100="rgba(2, 193, 96, 0.2)",
66
+ c200="#02C160",
67
+ c300="rgba(2, 193, 96, 0.32)",
68
+ c400="rgba(2, 193, 96, 0.32)",
69
+ c500="rgba(2, 193, 96, 1.0)",
70
+ c600="rgba(2, 193, 96, 1.0)",
71
+ c700="rgba(2, 193, 96, 0.32)",
72
+ c800="rgba(2, 193, 96, 0.32)",
73
+ c900="#02C160",
74
+ c950="#02C160",
75
+ ),
76
+ secondary_hue=gr.themes.Color(
77
+ c50="#576b95",
78
+ c100="#576b95",
79
+ c200="#576b95",
80
+ c300="#576b95",
81
+ c400="#576b95",
82
+ c500="#576b95",
83
+ c600="#576b95",
84
+ c700="#576b95",
85
+ c800="#576b95",
86
+ c900="#576b95",
87
+ c950="#576b95",
88
+ ),
89
+ neutral_hue=gr.themes.Color(
90
+ name="gray",
91
+ c50="#f9fafb",
92
+ c100="#f3f4f6",
93
+ c200="#e5e7eb",
94
+ c300="#d1d5db",
95
+ c400="#B2B2B2",
96
+ c500="#808080",
97
+ c600="#636363",
98
+ c700="#515151",
99
+ c800="#393939",
100
+ c900="#272727",
101
+ c950="#171717",
102
+ ),
103
+ radius_size=gr.themes.sizes.radius_sm,
104
+ ).set(
105
+ button_primary_background_fill="#06AE56",
106
+ button_primary_background_fill_dark="#06AE56",
107
+ button_primary_background_fill_hover="#07C863",
108
+ button_primary_border_color="#06AE56",
109
+ button_primary_border_color_dark="#06AE56",
110
+ button_primary_text_color="#FFFFFF",
111
+ button_primary_text_color_dark="#FFFFFF",
112
+ button_secondary_background_fill="#F2F2F2",
113
+ button_secondary_background_fill_dark="#2B2B2B",
114
+ button_secondary_text_color="#393939",
115
+ button_secondary_text_color_dark="#FFFFFF",
116
+ # background_fill_primary="#F7F7F7",
117
+ # background_fill_primary_dark="#1F1F1F",
118
+ block_title_text_color="*primary_500",
119
+ block_title_background_fill="*primary_100",
120
+ input_background_fill="#F6F6F6",
121
+ ),
122
  ) as demo:
123
  history = gr.State([])
124
  token_count = gr.State([])