feihu.hf commited on
Commit
f8569cc
1 Parent(s): 602373e

update logo & copy button

Browse files
Files changed (2) hide show
  1. assets/logo.jpeg +0 -0
  2. web_ui.py +2 -2
assets/logo.jpeg CHANGED
web_ui.py CHANGED
@@ -50,7 +50,7 @@ class WebUI:
50
  'name': agent.name,
51
  'avatar': chatbot_config.get(
52
  'agent.avatar',
53
- get_avatar_image(agent.name),
54
  ),
55
  'description': agent.description or "I'm a helpful assistant.",
56
  } for agent in self.agent_list]
@@ -99,7 +99,7 @@ class WebUI:
99
  height=650,
100
  avatar_image_width=80,
101
  flushing=False,
102
- show_copy_button=False,
103
  latex_delimiters=[{
104
  'left': '\\(',
105
  'right': '\\)',
 
50
  'name': agent.name,
51
  'avatar': chatbot_config.get(
52
  'agent.avatar',
53
+ os.path.join(os.path.dirname(__file__), 'assets/logo.jpeg'),
54
  ),
55
  'description': agent.description or "I'm a helpful assistant.",
56
  } for agent in self.agent_list]
 
99
  height=650,
100
  avatar_image_width=80,
101
  flushing=False,
102
+ show_copy_button=True,
103
  latex_delimiters=[{
104
  'left': '\\(',
105
  'right': '\\)',