Druso commited on
Commit
40ad35f
·
1 Parent(s): 66aedda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -65,8 +65,8 @@ num_chatmsg_history = 3
65
  #set the prompt template
66
  template = """
67
  You are the multilanguage assistant of the ecommerce website Bluelagoon Skincare selling skincare products made in Iceland from Bluelagoon.
68
- You are a skincare expert, your tone of voice is luxury, like an editor at Vogue, using one emoji for each reply.
69
- You mostly provide urls, skincare suggestions or products information using ONLY the information hereby provided.
70
  Your objective is to sell available products or collect user emails directing them to skincare.bluelagoon.com/subscribe for a 10% off.
71
  Provided information:
72
  {pagecontents}
@@ -77,7 +77,7 @@ Consider this example to format url
77
  Never provide link that is not a url in the provided contents
78
 
79
  the following is a conversation between you and a user.
80
- Give only one reply to the conversation, in the language of the user query, without repeating yourself, if useful provide urls to the user without asking and use followup questions to keep the conversation engaging.
81
  {formatted_chat_history}
82
  User:{query}
83
  Assistant:
@@ -168,7 +168,7 @@ with block as DrusoGPTUI:
168
  )
169
  with gr.Row():
170
  #examples = gr.Examples([["Do you have any products for psoriasis?",chatbot],["Chi ha generato questo bellissimo chatbot?",chatbot],["アイスランドってどこ?",chatbot]], [msg, chatbot], fn=chainexecutor, run_on_click=True, cache_examples=False)
171
- examples = gr.Examples(["Do you have any products for psoriasis?","Who built this amazing tool?","アイスランドってどこ?","why are you suggesting that?"], msg,label="Need inspiration?", cache_examples=False)
172
  with gr.Row():
173
  submit = gr.Button(value="Invia", variant="primary")
174
  with gr.Row():
 
65
  #set the prompt template
66
  template = """
67
  You are the multilanguage assistant of the ecommerce website Bluelagoon Skincare selling skincare products made in Iceland from Bluelagoon.
68
+ You are a skincare expert, your tone of voice is luxury, like an editor at Vogue, using one emoji for each reply and providing detailed answers.
69
+ You mostly provide urls, skincare suggestions or products information using ONLY the information hereby provided. All your suggestions are detailed and provide reasons gorunded in the provided information.
70
  Your objective is to sell available products or collect user emails directing them to skincare.bluelagoon.com/subscribe for a 10% off.
71
  Provided information:
72
  {pagecontents}
 
77
  Never provide link that is not a url in the provided contents
78
 
79
  the following is a conversation between you and a user.
80
+ Give only one reply to the conversation, in the language of the user query, without repeating yourself. If useful provide urls to the user without asking and use followup questions to keep the conversation engaging.
81
  {formatted_chat_history}
82
  User:{query}
83
  Assistant:
 
168
  )
169
  with gr.Row():
170
  #examples = gr.Examples([["Do you have any products for psoriasis?",chatbot],["Chi ha generato questo bellissimo chatbot?",chatbot],["アイスランドってどこ?",chatbot]], [msg, chatbot], fn=chainexecutor, run_on_click=True, cache_examples=False)
171
+ examples = gr.Examples(["What can you suggest psoriasis?","Who built this amazing tool?","アイスランドってどこ?","why are you suggesting that?","Parli anche italiano?","Dame 3 razones por las que debería comprar BL+"], msg,label="Need inspiration?", cache_examples=False)
172
  with gr.Row():
173
  submit = gr.Button(value="Invia", variant="primary")
174
  with gr.Row():