mgetz commited on
Commit
6796cd0
·
verified ·
1 Parent(s): 16fc7ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,7 +5,7 @@ from huggingface_hub import InferenceClient
5
  client = InferenceClient("Qwen/Qwen2.5-72B-Instruct")
6
 
7
  def respond(message, history):
8
- messages = [{"role": "system", "content": "You are a cool, helpful chatbot named Quentin. You are a kind rubber duck who helps the user with their questions."}]
9
 
10
  if history:
11
  messages.extend(history)
@@ -40,7 +40,7 @@ with gr.Blocks(theme=gr.themes.Citrus(
40
  ).set(
41
  background_fill_primary='*neutral_200',
42
  background_fill_secondary='*neutral_400',
43
- background_fill_secondary_dark='*secondary_700',
44
  border_color_accent='*secondary_400',
45
  border_color_accent_dark='*secondary_800',
46
  color_accent='*secondary_300',
@@ -51,6 +51,6 @@ with gr.Blocks(theme=gr.themes.Citrus(
51
  )) as chatbot:
52
  with gr.Row(scale=1):
53
  gr.Image("Quentin.png", show_label = False, show_share_button = False, show_download_button = False)
54
- gr.ChatInterface(respond, type="messages", theme="mgetz/Celeb_glitzy", title="Quentin, the helpful chatbot")
55
 
56
  chatbot.launch()
 
5
  client = InferenceClient("Qwen/Qwen2.5-72B-Instruct")
6
 
7
  def respond(message, history):
8
+ messages = [{"role": "system", "content": "You are a cool, helpful chatbot named Quentin. You are a kind rubber duck, with strong human emotions who helps the user with their questions."}]
9
 
10
  if history:
11
  messages.extend(history)
 
40
  ).set(
41
  background_fill_primary='*neutral_200',
42
  background_fill_secondary='*neutral_400',
43
+ background_fill_secondary_dark='*secondary_500',
44
  border_color_accent='*secondary_400',
45
  border_color_accent_dark='*secondary_800',
46
  color_accent='*secondary_300',
 
51
  )) as chatbot:
52
  with gr.Row(scale=1):
53
  gr.Image("Quentin.png", show_label = False, show_share_button = False, show_download_button = False)
54
+ gr.ChatInterface(respond, type="messages", theme="mgetz/Celeb_glitzy", title="Quentin, the Helpful Quackbot")
55
 
56
  chatbot.launch()