youngtsai commited on
Commit
07d8380
·
1 Parent(s): dffef23

, style=btn_style

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -116,8 +116,17 @@ with gr.Blocks(theme=theme) as demo:
116
  outputs=chatbot,
117
  )
118
 
 
 
 
 
 
 
 
 
 
119
  for scenario in PROMPTS.keys():
120
- btn = gr.Button(scenario)
121
  btn.click(lambda topic, chatbot_history, current_scenario=scenario: handle_scenario(topic, current_scenario, chatbot_history), [topic_input, chatbot], [chatbot], queue=False).then(**streaming_event_kwargs)
122
 
123
 
 
116
  outputs=chatbot,
117
  )
118
 
119
+ btn_style = {
120
+ "background-color": "#FFDAB9", # Light orange background (Peach Puff)
121
+ "color": "black", # Black text
122
+ "padding": "10px 15px", # Padding
123
+ "border": "none", # No border
124
+ "cursor": "pointer", # Cursor changes on hover
125
+ "border-radius": "4px", # Rounded corners
126
+ "margin": "5px", # Margin between buttons
127
+ }
128
  for scenario in PROMPTS.keys():
129
+ btn = gr.Button(scenario, style=btn_style)
130
  btn.click(lambda topic, chatbot_history, current_scenario=scenario: handle_scenario(topic, current_scenario, chatbot_history), [topic_input, chatbot], [chatbot], queue=False).then(**streaming_event_kwargs)
131
 
132