nirajandhakal commited on
Commit
cbff83f
·
verified ·
1 Parent(s): 24a04b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -1
app.py CHANGED
@@ -66,6 +66,15 @@ body {
66
  background-color: #e0f7fa;
67
  border-color: #0277bd;
68
  }
 
 
 
 
 
 
 
 
 
69
  """
70
 
71
  with gr.Blocks(css=css) as demo:
@@ -152,4 +161,19 @@ with gr.Blocks(css=css) as demo:
152
  outputs=[result, seed]
153
  )
154
 
155
- demo.launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  background-color: #e0f7fa;
67
  border-color: #0277bd;
68
  }
69
+ .gr-progress-bar, .gr-progress-bar-fill {
70
+ background-color: #0288d1 !important;
71
+ }
72
+ .gr-slider, .gr-slider-track {
73
+ background-color: #0288d1 !important;
74
+ }
75
+ .gr-slider-thumb {
76
+ background-color: #005662 !important;
77
+ }
78
  """
79
 
80
  with gr.Blocks(css=css) as demo:
 
161
  outputs=[result, seed]
162
  )
163
 
164
+ demo.load(
165
+ fn=lambda: None,
166
+ inputs=None,
167
+ outputs=None,
168
+ _js="""
169
+ function() {
170
+ document.addEventListener('keydown', function(event) {
171
+ if (event.key === 'Enter') {
172
+ document.querySelector('button').click();
173
+ }
174
+ });
175
+ }
176
+ """
177
+ )
178
+
179
+ demo.launch()