Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -139,11 +139,18 @@ def create_ui():
|
|
139 |
formatted_spaces = format_spaces(spaces_list)
|
140 |
print(f"Total spaces loaded: {len(formatted_spaces)}")
|
141 |
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
|
148 |
with gr.Blocks(css=css, theme="Nymbo/Nymbo_Theme") as demo:
|
149 |
gr.Markdown("# 300: HuggingFace Most Liked Spaces")
|
@@ -164,12 +171,15 @@ def create_ui():
|
|
164 |
last_url_state = gr.State("")
|
165 |
|
166 |
with gr.Row():
|
167 |
-
screenshot_output = gr.Image(type="pil", label="Live 화면", height=360, width=
|
168 |
-
|
169 |
-
|
|
|
170 |
app_py_content = gr.Code(language="python", label="메인 소스코드")
|
171 |
update_trigger = gr.Button("Update Screenshot", visible=False)
|
172 |
|
|
|
|
|
173 |
for _, button, space in space_rows:
|
174 |
button.click(
|
175 |
lambda s=space: on_select(s),
|
|
|
139 |
formatted_spaces = format_spaces(spaces_list)
|
140 |
print(f"Total spaces loaded: {len(formatted_spaces)}")
|
141 |
|
142 |
+
css = """
|
143 |
+
footer {visibility: hidden;}
|
144 |
+
.minimal-button {min-width: 30px !important; height: 25px !important; line-height: 1 !important; font-size: 12px !important; padding: 2px 5px !important;}
|
145 |
+
.space-row {margin-bottom: 5px !important;}
|
146 |
+
#refresh-button {
|
147 |
+
min-width: 40px !important;
|
148 |
+
height: 40px !important;
|
149 |
+
border-radius: 20px !important;
|
150 |
+
padding: 0.5rem !important;
|
151 |
+
font-size: 1.2rem !important;
|
152 |
+
}
|
153 |
+
"""
|
154 |
|
155 |
with gr.Blocks(css=css, theme="Nymbo/Nymbo_Theme") as demo:
|
156 |
gr.Markdown("# 300: HuggingFace Most Liked Spaces")
|
|
|
171 |
last_url_state = gr.State("")
|
172 |
|
173 |
with gr.Row():
|
174 |
+
screenshot_output = gr.Image(type="pil", label="Live 화면", height=360, width=540)
|
175 |
+
with gr.Column(scale=0.1):
|
176 |
+
refresh_button = gr.Button("🔄", size="sm")
|
177 |
+
|
178 |
app_py_content = gr.Code(language="python", label="메인 소스코드")
|
179 |
update_trigger = gr.Button("Update Screenshot", visible=False)
|
180 |
|
181 |
+
|
182 |
+
|
183 |
for _, button, space in space_rows:
|
184 |
button.click(
|
185 |
lambda s=space: on_select(s),
|