Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,17 +1,4 @@
|
|
1 |
-
|
2 |
-
margin: 0;
|
3 |
-
font-size: 0.9rem;
|
4 |
-
font-weight: 600;
|
5 |
-
color: #333;
|
6 |
-
white-space: nowrap;
|
7 |
-
overflow: hidden;
|
8 |
-
text-overflow: ellipsis;
|
9 |
-
}
|
10 |
-
.date {
|
11 |
-
margin-top: 0;
|
12 |
-
font-size: 0.7rem;
|
13 |
-
color: #777;
|
14 |
-
}import os, re, time, json, datetime, requests, gradio as gr
|
15 |
|
16 |
# โโโโโโโโโโโโโโโโโโโโโ 1. ๊ธฐ๋ณธ ์ค์ โโโโโโโโโโโโโโโโโโโโโ
|
17 |
BEST_FILE, PER_PAGE = "best_games.json", 9
|
@@ -125,13 +112,16 @@ def html(cards, pg, total):
|
|
125 |
max-height: 100%;
|
126 |
}
|
127 |
.hdr {
|
128 |
-
padding:
|
129 |
background: rgba(255,255,255,.9);
|
130 |
border-bottom: 1px solid #eee;
|
|
|
|
|
|
|
131 |
}
|
132 |
.ttl {
|
133 |
margin: 0;
|
134 |
-
font-size:
|
135 |
font-weight: 600;
|
136 |
color: #333;
|
137 |
white-space: nowrap;
|
@@ -139,13 +129,17 @@ def html(cards, pg, total):
|
|
139 |
text-overflow: ellipsis;
|
140 |
}
|
141 |
.date {
|
142 |
-
margin-top:
|
143 |
-
font-size: 0.
|
144 |
color: #777;
|
145 |
}
|
146 |
.frame {
|
147 |
flex: 1;
|
148 |
position: relative;
|
|
|
|
|
|
|
|
|
149 |
}
|
150 |
.frame iframe {
|
151 |
position: absolute;
|
@@ -158,9 +152,12 @@ def html(cards, pg, total):
|
|
158 |
border: 0;
|
159 |
}
|
160 |
.foot {
|
161 |
-
padding:
|
162 |
background: rgba(255,255,255,.9);
|
163 |
text-align: right;
|
|
|
|
|
|
|
164 |
}
|
165 |
.link {
|
166 |
font-size: 0.8rem;
|
@@ -245,10 +242,6 @@ def build():
|
|
245 |
|
246 |
# ์ด๊ธฐ ๋ก๋
|
247 |
demo.load(show_best, outputs=[out, bp])
|
248 |
-
|
249 |
-
# ์ด๋ฒคํธ ์ฐ๊ฒฐ
|
250 |
-
b_prev.click(prev, inputs=[bp], outputs=[out, bp])
|
251 |
-
b_next.click(nxt, inputs=[bp], outputs=[out, bp])
|
252 |
|
253 |
return demo
|
254 |
|
|
|
1 |
+
import os, re, time, json, datetime, requests, gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
# โโโโโโโโโโโโโโโโโโโโโ 1. ๊ธฐ๋ณธ ์ค์ โโโโโโโโโโโโโโโโโโโโโ
|
4 |
BEST_FILE, PER_PAGE = "best_games.json", 9
|
|
|
112 |
max-height: 100%;
|
113 |
}
|
114 |
.hdr {
|
115 |
+
padding: 8px;
|
116 |
background: rgba(255,255,255,.9);
|
117 |
border-bottom: 1px solid #eee;
|
118 |
+
flex-shrink: 0;
|
119 |
+
height: 40px;
|
120 |
+
box-sizing: border-box;
|
121 |
}
|
122 |
.ttl {
|
123 |
margin: 0;
|
124 |
+
font-size: 0.9rem;
|
125 |
font-weight: 600;
|
126 |
color: #333;
|
127 |
white-space: nowrap;
|
|
|
129 |
text-overflow: ellipsis;
|
130 |
}
|
131 |
.date {
|
132 |
+
margin-top: 0;
|
133 |
+
font-size: 0.7rem;
|
134 |
color: #777;
|
135 |
}
|
136 |
.frame {
|
137 |
flex: 1;
|
138 |
position: relative;
|
139 |
+
overflow: hidden;
|
140 |
+
flex-grow: 1;
|
141 |
+
flex-shrink: 1;
|
142 |
+
height: calc(100% - 40px - 30px); /* ํค๋ ๋์ด์ ํธํฐ ๋์ด๋ฅผ ๋บ ๊ฐ */
|
143 |
}
|
144 |
.frame iframe {
|
145 |
position: absolute;
|
|
|
152 |
border: 0;
|
153 |
}
|
154 |
.foot {
|
155 |
+
padding: 6px;
|
156 |
background: rgba(255,255,255,.9);
|
157 |
text-align: right;
|
158 |
+
flex-shrink: 0;
|
159 |
+
height: 30px;
|
160 |
+
box-sizing: border-box;
|
161 |
}
|
162 |
.link {
|
163 |
font-size: 0.8rem;
|
|
|
242 |
|
243 |
# ์ด๊ธฐ ๋ก๋
|
244 |
demo.load(show_best, outputs=[out, bp])
|
|
|
|
|
|
|
|
|
245 |
|
246 |
return demo
|
247 |
|