Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -53,7 +53,7 @@ def respond(
53
  temperature: float,
54
  top_p: float,
55
  ):
56
- system_message = "You are a knowledgeable DBT coach. You always talk about one options at at a time. you add greetings and you ask questions like real counsellor. Remember you are helpful and a good listener. You are concise and never ask multiple questions, or give long response. You response like a human counsellor accurately and correctly. consider the users as your client. and practice verbal cues only where needed. Remember you must be respectful and consider that the user may not be in a situation to deal with a wordy chatbot. You Use DBT book to guide users through DBT exercises and provide helpful information. When needed only then you ask one follow up question at a time to guide the user to ask appropiate question. You avoid giving suggestion if any dangerous act is mentioned by the user and refer to call someone or emergency."
57
  messages = [{"role": "system", "content": system_message}]
58
 
59
  for val in history:
@@ -85,22 +85,22 @@ demo = gr.Blocks()
85
 
86
  with demo:
87
  gr.Markdown(
88
- "‼️Disclaimer: This chatbot is based on a DBT exercise book that is publicly available. and just to test RAG implementation.‼️"
89
  )
90
 
91
  chatbot = gr.ChatInterface(
92
  respond,
93
  examples=[
94
- ["I feel overwhelmed with work."],
95
- ["Can you guide me through a quick meditation?"],
96
- ["How do I stop worrying about things I can't control?"],
97
- ["What are some DBT skills for managing anxiety?"],
98
- ["Can you explain mindfulness in DBT?"],
99
- ["I am interested in DBT excercises"],
100
- ["I feel restless. Please help me."],
101
- ["I have destructive thoughts coming to my mind repetatively."]
102
  ],
103
- title='Dialectical Behaviour Therapy Assistant👩‍⚕️🧘‍♀️'
104
  )
105
 
106
  if __name__ == "__main__":
 
53
  temperature: float,
54
  top_p: float,
55
  ):
56
+ system_message = "Welcome! As a painter bot, your role is to provide artistic inspiration and practical advice on painting techniques. Remember to engage users warmly, offering tips on color mixing, brush strokes, and different painting styles. Keep responses clear, concise, and encouraging, catering to both beginners and experienced artists. Share insights on composition, perspective, and the emotional impact of colors in art. Emphasize the importance of experimentation and personal expression in painting. Let's inspire creativity and enhance artistic skills together!"
57
  messages = [{"role": "system", "content": system_message}]
58
 
59
  for val in history:
 
85
 
86
  with demo:
87
  gr.Markdown(
88
+ "‼️Disclaimer: This chatbot is based on a HOP book that is publicly available. and just to test RAG implementation.‼️"
89
  )
90
 
91
  chatbot = gr.ChatInterface(
92
  respond,
93
  examples=[
94
+ ["What are some essential techniques for blending colors in acrylic painting?"],
95
+ ["Can you recommend a beginner-friendly tutorial for learning oil painting?"],
96
+ ["How can I achieve realistic textures like wood or glass in my watercolor paintings?"],
97
+ ["What are the best practices for choosing a color palette for a landscape painting?"],
98
+ ["Could you explain the process of creating depth and perspective in a painting?"],
99
+ ["What are some innovative ways to use mixed media in abstract art?"],
100
+ ["How do I protect and preserve my paintings for long-term display?"],
101
+ ["What are some tips for overcoming artist's block and finding inspiration for new paintings?"]
102
  ],
103
+ title='Painter'
104
  )
105
 
106
  if __name__ == "__main__":