ksort commited on
Commit
ec63b73
Β·
1 Parent(s): 02ff012

Update button

Browse files
Files changed (2) hide show
  1. serve/gradio_web.py +2 -2
  2. serve/utils.py +5 -2
serve/gradio_web.py CHANGED
@@ -214,8 +214,8 @@ def build_side_by_side_ui_anony(models):
214
  )
215
  # send_btn = gr.Button(value="Send", variant="primary", scale=0, elem_id="btnblue", elem_classes="send-button")
216
  # draw_btn = gr.Button(value="🎲 Random sample", variant="primary", scale=0, elem_id="btnblue", elem_classes="send-button")
217
- send_btn = gr.Button(value="Send", variant="primary", scale=0)
218
- draw_btn = gr.Button(value="🎲 Random Prompt", variant="primary", scale=0)
219
  with gr.Row():
220
  clear_btn = gr.Button(value="🎲 New Round", interactive=False)
221
  # regenerate_btn = gr.Button(value="πŸ”„ Regenerate", interactive=False)
 
214
  )
215
  # send_btn = gr.Button(value="Send", variant="primary", scale=0, elem_id="btnblue", elem_classes="send-button")
216
  # draw_btn = gr.Button(value="🎲 Random sample", variant="primary", scale=0, elem_id="btnblue", elem_classes="send-button")
217
+ send_btn = gr.Button(value="Send", variant="primary", scale=0, elem_id="btnblue")
218
+ draw_btn = gr.Button(value="🎲 Random Prompt", variant="primary", scale=0, elem_id="btnblue")
219
  with gr.Row():
220
  clear_btn = gr.Button(value="🎲 New Round", interactive=False)
221
  # regenerate_btn = gr.Button(value="πŸ”„ Regenerate", interactive=False)
serve/utils.py CHANGED
@@ -92,7 +92,8 @@ footer {
92
  justify-content: space-between;
93
  }
94
  .send-button {
95
- color: white;
 
96
  }
97
  .submit-button {
98
  color: red;
@@ -102,10 +103,12 @@ footer {
102
  #btncolor3 {background: rgb(255, 211, 182);}
103
  #btncolor4 {background: rgb(255, 170, 165);}
104
 
105
- #btnblue {background: rgb(0, 187, 240);}
106
  #btnpink {background: rgb(255, 168, 184);}
107
  """
108
 
 
 
109
  #btncolor1 {background: rgb(128, 214, 255);}
110
  #btncolor2 {background: rgb(237, 247, 152);}
111
  #btncolor3 {background: rgb(250, 181, 122);}
 
92
  justify-content: space-between;
93
  }
94
  .send-button {
95
+ background: rgb(168, 230, 207);
96
+ color: rgb(0, 198, 171);
97
  }
98
  .submit-button {
99
  color: red;
 
103
  #btncolor3 {background: rgb(255, 211, 182);}
104
  #btncolor4 {background: rgb(255, 170, 165);}
105
 
106
+ #btnblue {background: linear-gradient(to bottom right, rgb(222, 235, 247), rgb(189,215,238)); color: rgb(0, 112, 192); border: 1px solid rgb(189,215,238);}
107
  #btnpink {background: rgb(255, 168, 184);}
108
  """
109
 
110
+ #
111
+
112
  #btncolor1 {background: rgb(128, 214, 255);}
113
  #btncolor2 {background: rgb(237, 247, 152);}
114
  #btncolor3 {background: rgb(250, 181, 122);}