juancopi81 commited on
Commit
0aa8fba
β€’
1 Parent(s): 684a737

Change button color

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -46,21 +46,27 @@ num_samples = 2
46
  def infer(prompt, scale, steps):
47
 
48
  with context("cuda"):
49
- images = pipe(num_samples*[prompt], guidance_scale=scale, num_inference_steps=steps).images
 
 
50
 
51
  return images
52
 
53
  css = """
 
 
 
 
54
  .gradio-container {
55
  font-family: 'IBM Plex Sans', sans-serif;
56
  }
57
  .gr-button {
58
  color: white;
59
- border-color: black;
60
- background: black;
61
  }
62
  input[type='range'] {
63
- accent-color: black;
64
  }
65
  .dark input[type='range'] {
66
  accent-color: #dfdfdf;
 
46
  def infer(prompt, scale, steps):
47
 
48
  with context("cuda"):
49
+ images = pipe(num_samples*[prompt],
50
+ guidance_scale=scale,
51
+ num_inference_steps=int(steps)).images
52
 
53
  return images
54
 
55
  css = """
56
+ a {
57
+ color: inherit;
58
+ text-decoration: underline;
59
+ }
60
  .gradio-container {
61
  font-family: 'IBM Plex Sans', sans-serif;
62
  }
63
  .gr-button {
64
  color: white;
65
+ border-color: #0000FF;
66
+ background: #0000FF;
67
  }
68
  input[type='range'] {
69
+ accent-color: #0000FF;
70
  }
71
  .dark input[type='range'] {
72
  accent-color: #dfdfdf;