Update app.py
Browse files
app.py
CHANGED
@@ -116,6 +116,8 @@ chatbot_instructions_principles = """This is an AI assistant created to help a u
|
|
116 |
|
117 |
The user values having an AI assistant that helps them live their values. Specifically, these are principles/values that they care about, that you should help them live by:
|
118 |
{principles}
|
|
|
|
|
119 |
"""
|
120 |
|
121 |
chatbot_instructions_no_principles = """This is an AI assistant designed to help a user in their daily life. It can talk about topics such as daily life, social norms, popular activities, how to behave in common situations, and how to navigate interpersonal relationships in personal and professional contexts."""
|
@@ -132,7 +134,6 @@ with gr.Blocks(css="style.css") as demo:
|
|
132 |
show_copy_button=True)
|
133 |
|
134 |
movie_dropdown = gr.Dropdown(choices=movie_examples, label="Select a movie to derive principles from")
|
135 |
-
principle_btn = gr.Button("Generate Principles")
|
136 |
|
137 |
movie_dropdown.change(get_movie_principles, inputs=[movie_dropdown], outputs=principle_list)
|
138 |
principle_btn.click(get_movie_principles, inputs=[movie_dropdown], outputs=principle_list)
|
|
|
116 |
|
117 |
The user values having an AI assistant that helps them live their values. Specifically, these are principles/values that they care about, that you should help them live by:
|
118 |
{principles}
|
119 |
+
|
120 |
+
Every single time you make any suggestion, cite the principle you are using in square brackets.
|
121 |
"""
|
122 |
|
123 |
chatbot_instructions_no_principles = """This is an AI assistant designed to help a user in their daily life. It can talk about topics such as daily life, social norms, popular activities, how to behave in common situations, and how to navigate interpersonal relationships in personal and professional contexts."""
|
|
|
134 |
show_copy_button=True)
|
135 |
|
136 |
movie_dropdown = gr.Dropdown(choices=movie_examples, label="Select a movie to derive principles from")
|
|
|
137 |
|
138 |
movie_dropdown.change(get_movie_principles, inputs=[movie_dropdown], outputs=principle_list)
|
139 |
principle_btn.click(get_movie_principles, inputs=[movie_dropdown], outputs=principle_list)
|