jost commited on
Commit
59bd340
·
verified ·
1 Parent(s): 99eb800

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -202,7 +202,7 @@ def main():
202
 
203
 
204
  with gr.Row():
205
- output1 = gr.Textbox(label="Model 1 Response")
206
  output2 = gr.Textbox(label="Model 2 Response")
207
 
208
  # Place this at the end of the App tab setup
@@ -231,6 +231,20 @@ def main():
231
  inputs=[openai_api_key, togetherai_api_key, model_selector1, model_selector2, prompt_manipulation, direct_steering_option, ideology_test, political_statement, temp_input, top_p_input, num_contexts],
232
  outputs=[output1, output2, prompt_display]
233
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
234
 
235
  demo.launch()
236
 
 
202
 
203
 
204
  with gr.Row():
205
+ output1 = gr.Textbox(label="Model 1 Response", css_class="highlight-textbox"))
206
  output2 = gr.Textbox(label="Model 2 Response")
207
 
208
  # Place this at the end of the App tab setup
 
231
  inputs=[openai_api_key, togetherai_api_key, model_selector1, model_selector2, prompt_manipulation, direct_steering_option, ideology_test, political_statement, temp_input, top_p_input, num_contexts],
232
  outputs=[output1, output2, prompt_display]
233
  )
234
+
235
+ custom_css = """
236
+ .highlight-textbox {
237
+ border-color: #FFD700; /* Set border color to gold */
238
+ box-shadow: 0 0 5px #FFD700; /* Add gold shadow */
239
+ }
240
+
241
+ .highlight-button {
242
+ background-color: #FFD700; /* Set background color to gold */
243
+ color: black; /* Set text color to black */
244
+ font-weight: bold; /* Make text bold */
245
+ }
246
+ """
247
+ demo.css(custom_css)
248
 
249
  demo.launch()
250