Update app.py
Browse files
app.py
CHANGED
@@ -28,73 +28,12 @@ def send_data(password, text):
|
|
28 |
else:
|
29 |
raise gr.Error("Неверный пароль!")
|
30 |
|
31 |
-
|
32 |
-
|
33 |
-
visibility: hidden !important;
|
34 |
-
}
|
35 |
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
--block-radius: 18px !important;
|
40 |
-
--border-color-primary: #2c0039 !important;
|
41 |
-
--block-background-fill: #202020 !important;
|
42 |
-
--body-background-fill: #000000 !important;
|
43 |
-
--input-background-fill: #151515 !important;
|
44 |
-
--input-radius: 14px !important;
|
45 |
-
--checkbox-label-border-width: 0px !important;
|
46 |
-
--block-label-border-width: 0px !important;
|
47 |
-
--input-border-width: 0px !important;
|
48 |
-
}
|
49 |
-
|
50 |
-
.primary {
|
51 |
-
color: #FFF !important;
|
52 |
-
font-size: 16px !important;
|
53 |
-
padding: 10px 20px !important;
|
54 |
-
border: 3px solid rgb(234 181 238) !important;
|
55 |
-
border-radius: 15px !important;
|
56 |
-
text-decoration: none !important;
|
57 |
-
transition: 0.5s ease-in-out !important;
|
58 |
-
font-weight: normal !important;
|
59 |
-
background: none !important;
|
60 |
-
}
|
61 |
-
.primary:hover {
|
62 |
-
background: rgb(234 181 238) !important;
|
63 |
-
color: #000 !important;
|
64 |
-
}
|
65 |
-
div.svelte-19hvt5v {
|
66 |
-
border: 0px solid #510067 !important;
|
67 |
-
background: #101010;
|
68 |
-
}
|
69 |
-
.selected.svelte-1uw5tnk {
|
70 |
-
border-color: #510067 !important;
|
71 |
-
border-width: 0px !important;
|
72 |
-
}
|
73 |
-
.tab-nav.svelte-1uw5tnk {
|
74 |
-
border-bottom: 0px solid #510067 !important;
|
75 |
-
}
|
76 |
-
.secondary {
|
77 |
-
color: #FFF !important;
|
78 |
-
font-size: 18px !important;
|
79 |
-
border: 3px solid rgb(96 55 103) !important;
|
80 |
-
border-radius: 20px !important;
|
81 |
-
transition: background-color 0.5s ease-in-out !important;
|
82 |
-
width: 100% !important;
|
83 |
-
background-color: transparent !important;
|
84 |
-
height: 50px !important;
|
85 |
-
font-weight: bold !important;
|
86 |
-
align-items: center !important;
|
87 |
-
justify-content: center !important;
|
88 |
-
background: none !important;
|
89 |
-
}
|
90 |
-
.secondary:hover {
|
91 |
-
background-color: rgb(96 55 103);
|
92 |
-
}
|
93 |
-
.svelte-zyxd38 {
|
94 |
-
display: none !important;
|
95 |
-
visibility: hidden !important
|
96 |
-
}
|
97 |
-
"""
|
98 |
|
99 |
with gr.Blocks(css=css) as demo:
|
100 |
with gr.Row():
|
|
|
28 |
else:
|
29 |
raise gr.Error("Неверный пароль!")
|
30 |
|
31 |
+
# Ссылка на файл CSS
|
32 |
+
css_url = "https://aihubyufi-aihub.static.hf.space/style.css"
|
|
|
|
|
33 |
|
34 |
+
# Получение CSS по ссылке
|
35 |
+
response = requests.get(css_url)
|
36 |
+
css = response.text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
with gr.Blocks(css=css) as demo:
|
39 |
with gr.Row():
|