Rooni commited on
Commit
c481706
·
verified ·
1 Parent(s): 6d96487

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +98 -1
app.py CHANGED
@@ -41,7 +41,104 @@ css_url = "https://neurixyufi-aihub.static.hf.space/style.css"
41
 
42
  # Получение CSS по ссылке
43
  response = requests.get(css_url)
44
- css = response.text + ".gradio-container{max-width: 700px !important} h1{text-align:center}"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
  # Определяем интерфейс Gradio
47
  demo = gr.ChatInterface(
 
41
 
42
  # Получение CSS по ссылке
43
  response = requests.get(css_url)
44
+ css = response.text + """.gradio-container{max-width: 700px !important} h1{text-align:center}
45
+ * {
46
+ transition: all 0.2s;
47
+ }
48
+
49
+ footer {
50
+ visibility: hidden !important;
51
+ }
52
+ .dark {
53
+ --block-label-radius: 0 0 10px 0 !important;
54
+ --container-radius: 20px !important;
55
+ --block-border-width: 0px !important;
56
+ --block-radius: 20px !important;
57
+ --border-color-primary: transparent !important;
58
+ --block-background-fill: #202020 !important;
59
+ --body-background-fill: #000000 !important;
60
+ --input-background-fill: #151515 !important;
61
+ --input-radius: 15px !important;
62
+ --checkbox-label-border-width: 0px !important;
63
+ --block-label-border-width: 0px !important;
64
+ --input-border-width: 0px !important;
65
+ --checkbox-label-background-fill: #151515 !important;
66
+ --button-small-radius: 25px !important;
67
+ --slider-color: #472b4a !important;
68
+ --radius-md: 15px !important;
69
+ --radius-sm: 25px !important;
70
+ --background-fill-primary: #210e24 !important;
71
+ --block-label-right-radius: 0 0 0 10px !important;
72
+ --radius-xs: 15px !important;
73
+ }
74
+ .primary {
75
+ color: #FFF !important;
76
+ font-size: 16px !important;
77
+ padding: 10px 20px !important;
78
+ border: 3px solid rgb(234 181 238) !important;
79
+ border-radius: 15px !important;
80
+ text-decoration: none !important;
81
+ transition: 0.5s ease-in-out !important;
82
+ font-weight: normal !important;
83
+ background: none !important;
84
+ }
85
+ .primary:hover {
86
+ background: rgb(234 181 238) !important;
87
+ color: #000 !important;
88
+ }
89
+ div.svelte-19hvt5v {
90
+ border: 0px solid #510067 !important;
91
+ background: #101010;
92
+ }
93
+ .selected.svelte-1uw5tnk {
94
+ border-color: #510067 !important;
95
+ border-width: 0px !important;
96
+ }
97
+ .tab-nav.svelte-1uw5tnk {
98
+ border-bottom: 0px solid #510067 !important;
99
+ }
100
+ .secondary {
101
+ color: #FFF !important;
102
+ font-size: 18px !important;
103
+ border: 3px solid rgb(96 55 103) !important;
104
+ border-radius: 15px !important;
105
+ transition: background-color 0.5s ease-in-out !important;
106
+ width: 100% !important;
107
+ background-color: transparent !important;
108
+ height: 50px !important;
109
+ font-weight: bold !important;
110
+ align-items: center !important;
111
+ justify-content: center !important;
112
+ background: none !important;
113
+ }
114
+ .secondary:hover {
115
+ background-color: rgb(96 55 103) !important;
116
+ }
117
+ .svelte-zyxd38 {
118
+ display: none !important;
119
+ visibility: hidden !important
120
+ }
121
+ .selected.svelte-1uw5tnk {
122
+ background: #151515;
123
+ border-radius: 25px !important;
124
+ margin-bottom: 3px !important;
125
+ }
126
+ button.svelte-1uw5tnk {
127
+ margin-bottom: 3px !important;
128
+ }
129
+ label.svelte-1mhtq7j.svelte-1mhtq7j.svelte-1mhtq7j:hover {
130
+ background: #291928 !important;
131
+ }
132
+ .controls.svelte-euo1cw.svelte-euo1cw {
133
+ background: #321f37 !important;
134
+ }
135
+ .padded.svelte-p87ime {
136
+ border: none !important;
137
+ }
138
+ label.svelte-1b6s6s {
139
+ background: #210e24 !important;
140
+ }
141
+ """
142
 
143
  # Определяем интерфейс Gradio
144
  demo = gr.ChatInterface(