Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,12 +20,10 @@ css = """
|
|
20 |
padding: 0;
|
21 |
box-sizing: border-box;
|
22 |
}
|
23 |
-
|
24 |
body {
|
25 |
background-color: #ffffff;
|
26 |
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
27 |
}
|
28 |
-
|
29 |
.header {
|
30 |
background: #ffffff;
|
31 |
border-bottom: 1px solid #e5e5e5;
|
@@ -35,30 +33,25 @@ body {
|
|
35 |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
36 |
margin-bottom: 2rem;
|
37 |
}
|
38 |
-
|
39 |
.logo {
|
40 |
width: 45px;
|
41 |
height: 45px;
|
42 |
margin-right: 15px;
|
43 |
transition: transform 0.3s ease;
|
44 |
}
|
45 |
-
|
46 |
.logo:hover {
|
47 |
transform: scale(1.05);
|
48 |
}
|
49 |
-
|
50 |
.header-title {
|
51 |
color: #000000;
|
52 |
font-size: 24px;
|
53 |
font-weight: 600;
|
54 |
}
|
55 |
-
|
56 |
.container {
|
57 |
max-width: 1400px;
|
58 |
margin: 0 auto;
|
59 |
padding: 0 2rem;
|
60 |
}
|
61 |
-
|
62 |
.main-content {
|
63 |
background: #ffffff;
|
64 |
border-radius: 12px;
|
@@ -67,14 +60,12 @@ body {
|
|
67 |
overflow: hidden;
|
68 |
border: 1px solid #e5e5e5;
|
69 |
}
|
70 |
-
|
71 |
.iframe-container {
|
72 |
position: relative;
|
73 |
width: 100%;
|
74 |
height: 0;
|
75 |
padding-bottom: 65%;
|
76 |
}
|
77 |
-
|
78 |
.iframe-container iframe {
|
79 |
position: absolute;
|
80 |
top: 0;
|
@@ -83,14 +74,12 @@ body {
|
|
83 |
height: 100%;
|
84 |
border: none;
|
85 |
}
|
86 |
-
|
87 |
.nav-grid {
|
88 |
display: grid;
|
89 |
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
90 |
gap: 1.5rem;
|
91 |
margin: 2rem 0;
|
92 |
}
|
93 |
-
|
94 |
.nav-card {
|
95 |
background: #ffffff;
|
96 |
border: 1px solid #e5e5e5;
|
@@ -98,13 +87,11 @@ body {
|
|
98 |
padding: 1.5rem;
|
99 |
transition: all 0.3s ease;
|
100 |
}
|
101 |
-
|
102 |
.nav-card:hover {
|
103 |
transform: translateY(-5px);
|
104 |
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
|
105 |
border-color: #000000;
|
106 |
}
|
107 |
-
|
108 |
.nav-card a {
|
109 |
color: #000000;
|
110 |
text-decoration: none;
|
@@ -114,28 +101,23 @@ body {
|
|
114 |
align-items: center;
|
115 |
gap: 0.8rem;
|
116 |
}
|
117 |
-
|
118 |
.nav-card a::after {
|
119 |
content: '→';
|
120 |
margin-left: auto;
|
121 |
opacity: 0;
|
122 |
transition: opacity 0.3s ease;
|
123 |
}
|
124 |
-
|
125 |
.nav-card:hover a::after {
|
126 |
opacity: 1;
|
127 |
}
|
128 |
-
|
129 |
/* Hide Gradio elements */
|
130 |
footer {
|
131 |
display: none !important;
|
132 |
}
|
133 |
-
|
134 |
.gradio-container {
|
135 |
margin: 0 !important;
|
136 |
padding: 0 !important;
|
137 |
}
|
138 |
-
|
139 |
@media (max-width: 768px) {
|
140 |
.nav-grid {
|
141 |
grid-template-columns: 1fr;
|
@@ -221,4 +203,4 @@ if __name__ == "__main__":
|
|
221 |
demo.launch(
|
222 |
show_error=False,
|
223 |
show_api=False,
|
224 |
-
)
|
|
|
20 |
padding: 0;
|
21 |
box-sizing: border-box;
|
22 |
}
|
|
|
23 |
body {
|
24 |
background-color: #ffffff;
|
25 |
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
26 |
}
|
|
|
27 |
.header {
|
28 |
background: #ffffff;
|
29 |
border-bottom: 1px solid #e5e5e5;
|
|
|
33 |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
34 |
margin-bottom: 2rem;
|
35 |
}
|
|
|
36 |
.logo {
|
37 |
width: 45px;
|
38 |
height: 45px;
|
39 |
margin-right: 15px;
|
40 |
transition: transform 0.3s ease;
|
41 |
}
|
|
|
42 |
.logo:hover {
|
43 |
transform: scale(1.05);
|
44 |
}
|
|
|
45 |
.header-title {
|
46 |
color: #000000;
|
47 |
font-size: 24px;
|
48 |
font-weight: 600;
|
49 |
}
|
|
|
50 |
.container {
|
51 |
max-width: 1400px;
|
52 |
margin: 0 auto;
|
53 |
padding: 0 2rem;
|
54 |
}
|
|
|
55 |
.main-content {
|
56 |
background: #ffffff;
|
57 |
border-radius: 12px;
|
|
|
60 |
overflow: hidden;
|
61 |
border: 1px solid #e5e5e5;
|
62 |
}
|
|
|
63 |
.iframe-container {
|
64 |
position: relative;
|
65 |
width: 100%;
|
66 |
height: 0;
|
67 |
padding-bottom: 65%;
|
68 |
}
|
|
|
69 |
.iframe-container iframe {
|
70 |
position: absolute;
|
71 |
top: 0;
|
|
|
74 |
height: 100%;
|
75 |
border: none;
|
76 |
}
|
|
|
77 |
.nav-grid {
|
78 |
display: grid;
|
79 |
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
80 |
gap: 1.5rem;
|
81 |
margin: 2rem 0;
|
82 |
}
|
|
|
83 |
.nav-card {
|
84 |
background: #ffffff;
|
85 |
border: 1px solid #e5e5e5;
|
|
|
87 |
padding: 1.5rem;
|
88 |
transition: all 0.3s ease;
|
89 |
}
|
|
|
90 |
.nav-card:hover {
|
91 |
transform: translateY(-5px);
|
92 |
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
|
93 |
border-color: #000000;
|
94 |
}
|
|
|
95 |
.nav-card a {
|
96 |
color: #000000;
|
97 |
text-decoration: none;
|
|
|
101 |
align-items: center;
|
102 |
gap: 0.8rem;
|
103 |
}
|
|
|
104 |
.nav-card a::after {
|
105 |
content: '→';
|
106 |
margin-left: auto;
|
107 |
opacity: 0;
|
108 |
transition: opacity 0.3s ease;
|
109 |
}
|
|
|
110 |
.nav-card:hover a::after {
|
111 |
opacity: 1;
|
112 |
}
|
|
|
113 |
/* Hide Gradio elements */
|
114 |
footer {
|
115 |
display: none !important;
|
116 |
}
|
|
|
117 |
.gradio-container {
|
118 |
margin: 0 !important;
|
119 |
padding: 0 !important;
|
120 |
}
|
|
|
121 |
@media (max-width: 768px) {
|
122 |
.nav-grid {
|
123 |
grid-template-columns: 1fr;
|
|
|
203 |
demo.launch(
|
204 |
show_error=False,
|
205 |
show_api=False,
|
206 |
+
)
|