Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def respond(
|
|
53 |
temperature: float,
|
54 |
top_p: float,
|
55 |
):
|
56 |
-
system_message = "
|
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
|
89 |
)
|
90 |
|
91 |
chatbot = gr.ChatInterface(
|
92 |
respond,
|
93 |
examples=[
|
94 |
-
["
|
95 |
-
["Can you
|
96 |
-
["How
|
97 |
-
["What are
|
98 |
-
["
|
99 |
-
["
|
100 |
-
["I
|
101 |
-
["
|
102 |
],
|
103 |
-
title='
|
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__":
|