Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -37,9 +37,6 @@ def swap_hardware(hf_token, hardware="cpu-basic"):
|
|
37 |
body = {'flavor': hardware}
|
38 |
requests.post(hardware_url, json = body, headers=headers)
|
39 |
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
def swap_sleep_time(sleep_time):
|
44 |
|
45 |
if sleep_time == "5 minutes":
|
@@ -224,7 +221,7 @@ css = """
|
|
224 |
|
225 |
div#warning-ready {
|
226 |
background-color: #ecfdf5;
|
227 |
-
padding: 0
|
228 |
margin: 20px 0;
|
229 |
}
|
230 |
div#warning-ready > .gr-prose > h2, div#warning-ready > .gr-prose > p {
|
@@ -232,7 +229,7 @@ div#warning-ready > .gr-prose > h2, div#warning-ready > .gr-prose > p {
|
|
232 |
}
|
233 |
div#warning-duplicate {
|
234 |
background-color: #ebf5ff;
|
235 |
-
padding: 0
|
236 |
margin: 20px 0;
|
237 |
}
|
238 |
div#warning-duplicate > .gr-prose > h2, div#warning-duplicate > .gr-prose > p {
|
@@ -252,7 +249,7 @@ div#warning-duplicate .actions a {
|
|
252 |
}
|
253 |
div#warning-setgpu {
|
254 |
background-color: #fff4eb;
|
255 |
-
padding: 0
|
256 |
margin: 20px 0;
|
257 |
}
|
258 |
div#warning-setgpu > .gr-prose > h2, div#warning-setgpu > .gr-prose > p {
|
|
|
37 |
body = {'flavor': hardware}
|
38 |
requests.post(hardware_url, json = body, headers=headers)
|
39 |
|
|
|
|
|
|
|
40 |
def swap_sleep_time(sleep_time):
|
41 |
|
42 |
if sleep_time == "5 minutes":
|
|
|
221 |
|
222 |
div#warning-ready {
|
223 |
background-color: #ecfdf5;
|
224 |
+
padding: 0 16px 16px;
|
225 |
margin: 20px 0;
|
226 |
}
|
227 |
div#warning-ready > .gr-prose > h2, div#warning-ready > .gr-prose > p {
|
|
|
229 |
}
|
230 |
div#warning-duplicate {
|
231 |
background-color: #ebf5ff;
|
232 |
+
padding: 0 16px 16px;
|
233 |
margin: 20px 0;
|
234 |
}
|
235 |
div#warning-duplicate > .gr-prose > h2, div#warning-duplicate > .gr-prose > p {
|
|
|
249 |
}
|
250 |
div#warning-setgpu {
|
251 |
background-color: #fff4eb;
|
252 |
+
padding: 0 16px 16px;
|
253 |
margin: 20px 0;
|
254 |
}
|
255 |
div#warning-setgpu > .gr-prose > h2, div#warning-setgpu > .gr-prose > p {
|