Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,74 +42,12 @@ def generate(description):
|
|
42 |
return f"**Ошибка запроса!**\n\n```\n{e}\n```", f"Ошибка запроса!\n\n{e}"
|
43 |
|
44 |
|
45 |
-
#
|
46 |
-
|
47 |
-
footer {
|
48 |
-
visibility: hidden !important;
|
49 |
-
}
|
50 |
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
--block-radius: 18px !important;
|
55 |
-
--border-color-primary: #2c0039 !important;
|
56 |
-
--block-background-fill: #202020 !important;
|
57 |
-
--body-background-fill: #000000 !important;
|
58 |
-
--input-background-fill: #151515 !important;
|
59 |
-
--input-radius: 14px !important;
|
60 |
-
--checkbox-label-border-width: 0px !important;
|
61 |
-
--block-label-border-width: 0px !important;
|
62 |
-
--input-border-width: 0px !important;
|
63 |
-
}
|
64 |
-
|
65 |
-
.primary {
|
66 |
-
color: #FFF !important;
|
67 |
-
font-size: 16px !important;
|
68 |
-
padding: 10px 20px !important;
|
69 |
-
border: 3px solid rgb(234 181 238) !important;
|
70 |
-
border-radius: 15px !important;
|
71 |
-
text-decoration: none !important;
|
72 |
-
transition: 0.5s ease-in-out !important;
|
73 |
-
font-weight: normal !important;
|
74 |
-
background: none !important;
|
75 |
-
}
|
76 |
-
.primary:hover {
|
77 |
-
background: rgb(234 181 238) !important;
|
78 |
-
color: #000 !important;
|
79 |
-
}
|
80 |
-
div.svelte-19hvt5v {
|
81 |
-
border: 0px solid #510067 !important;
|
82 |
-
background: #101010;
|
83 |
-
}
|
84 |
-
.selected.svelte-1uw5tnk {
|
85 |
-
border-color: #510067 !important;
|
86 |
-
border-width: 0px !important;
|
87 |
-
}
|
88 |
-
.tab-nav.svelte-1uw5tnk {
|
89 |
-
border-bottom: 0px solid #510067 !important;
|
90 |
-
}
|
91 |
-
.secondary {
|
92 |
-
color: #FFF !important;
|
93 |
-
font-size: 18px !important;
|
94 |
-
border: 3px solid rgb(96 55 103) !important;
|
95 |
-
border-radius: 20px !important;
|
96 |
-
transition: background-color 0.5s ease-in-out !important;
|
97 |
-
width: 100% !important;
|
98 |
-
background-color: transparent !important;
|
99 |
-
height: 50px !important;
|
100 |
-
font-weight: bold !important;
|
101 |
-
align-items: center !important;
|
102 |
-
justify-content: center !important;
|
103 |
-
background: none !important;
|
104 |
-
}
|
105 |
-
.secondary:hover {
|
106 |
-
background-color: rgb(96 55 103);
|
107 |
-
}
|
108 |
-
.svelte-zyxd38 {
|
109 |
-
display: none !important;
|
110 |
-
visibility: hidden !important
|
111 |
-
}
|
112 |
-
"""
|
113 |
|
114 |
# ui
|
115 |
with gr.Blocks(css=css) as demo:
|
|
|
42 |
return f"**Ошибка запроса!**\n\n```\n{e}\n```", f"Ошибка запроса!\n\n{e}"
|
43 |
|
44 |
|
45 |
+
# Ссылка на файл CSS
|
46 |
+
css_url = "https://aihubyufi-aihub.static.hf.space/style.css"
|
|
|
|
|
|
|
47 |
|
48 |
+
# Получение CSS по ссылке
|
49 |
+
response = requests.get(css_url)
|
50 |
+
css = response.text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
|
52 |
# ui
|
53 |
with gr.Blocks(css=css) as demo:
|