fffiloni commited on
Commit
6debf2b
β€’
1 Parent(s): 8ce77f4

added gpu button

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py CHANGED
@@ -267,6 +267,17 @@ div#warning-setgpu a, div#warning-setgpu b {
267
  color: #91230f;
268
  }
269
 
 
 
 
 
 
 
 
 
 
 
 
270
  button#load-dataset-btn{
271
  min-height: 60px;
272
  }
@@ -309,6 +320,9 @@ with gr.Blocks(css=css) as demo:
309
  You have successfully duplicated the SD-XL Training Space πŸŽ‰</h2>
310
  <p>There's only one step left before you can train your model: <a href="https://huggingface.co/spaces/{os.environ['SPACE_ID']}/settings" style="text-decoration: underline" target="_blank">attribute a <b>T4-small or A10G-small GPU</b> to it (via the Settings tab)</a> and run the training below.
311
  You will be billed by the minute from when you activate the GPU until when it is turned off.</p>
 
 
 
312
  </div>
313
  ''', elem_id="warning-setgpu")
314
 
 
267
  color: #91230f;
268
  }
269
 
270
+ div#warning-setgpu p.actions > a {
271
+ display: inline-block;
272
+ background: #1f1f23;
273
+ border-radius: 40px;
274
+ padding: 6px 24px;
275
+ color: antiquewhite;
276
+ text-decoration: none;
277
+ font-weight: 600;
278
+ font-size: 1.2em;
279
+ }
280
+
281
  button#load-dataset-btn{
282
  min-height: 60px;
283
  }
 
320
  You have successfully duplicated the SD-XL Training Space πŸŽ‰</h2>
321
  <p>There's only one step left before you can train your model: <a href="https://huggingface.co/spaces/{os.environ['SPACE_ID']}/settings" style="text-decoration: underline" target="_blank">attribute a <b>T4-small or A10G-small GPU</b> to it (via the Settings tab)</a> and run the training below.
322
  You will be billed by the minute from when you activate the GPU until when it is turned off.</p>
323
+ <p class="actions">
324
+ <a href="https://huggingface.co/spaces/{os.environ['SPACE_ID']}/settings">πŸ”₯ &nbsp; Set recommended GPU</a>
325
+ </p>
326
  </div>
327
  ''', elem_id="warning-setgpu")
328