add copy button and fix style in the copy button and background code block

#8
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -204,9 +204,11 @@ main = gr.ChatInterface(
204
  block_title_background_fill_dark="#1b0f0f",
205
  input_background_fill_dark="#140b0b",
206
  button_secondary_background_fill_dark="#140b0b",
 
207
  border_color_primary_dark="#1b0f0f",
208
  background_fill_secondary_dark="#0c0505",
209
- color_accent_soft_dark="transparent"
 
210
  ),
211
  css=css,
212
  retry_btn="Retry",
@@ -215,7 +217,11 @@ main = gr.ChatInterface(
215
  submit_btn="Send",
216
  analytics_enabled=False,
217
  description="llama-cpp-agent research agent with ability to search the web",
218
- chatbot=gr.Chatbot(scale=1, placeholder=PLACEHOLDER),
 
 
 
 
219
  )
220
 
221
  if __name__ == "__main__":
 
204
  block_title_background_fill_dark="#1b0f0f",
205
  input_background_fill_dark="#140b0b",
206
  button_secondary_background_fill_dark="#140b0b",
207
+ border_color_accent_dark="#1b0f0f",
208
  border_color_primary_dark="#1b0f0f",
209
  background_fill_secondary_dark="#0c0505",
210
+ color_accent_soft_dark="transparent",
211
+ code_background_fill_dark="#140b0b"
212
  ),
213
  css=css,
214
  retry_btn="Retry",
 
217
  submit_btn="Send",
218
  analytics_enabled=False,
219
  description="llama-cpp-agent research agent with ability to search the web",
220
+ chatbot=gr.Chatbot(
221
+ scale=1,
222
+ placeholder=PLACEHOLDER,
223
+ show_copy_button=True
224
+ ),
225
  )
226
 
227
  if __name__ == "__main__":