Update app.py
Browse files
app.py
CHANGED
@@ -210,7 +210,7 @@ with gr.Blocks(css=css) as demo:
|
|
210 |
gr.Markdown("# Emotions Detector")
|
211 |
gr.Markdown(emotions_detector_tagline)
|
212 |
|
213 |
-
system_message_emotions = gr.Textbox(value="You are an
|
214 |
chatbot_emotions = gr.Chatbot()
|
215 |
msg_emotions = gr.Textbox(label="Your message")
|
216 |
clear_emotions = gr.Button("Clear")
|
|
|
210 |
gr.Markdown("# Emotions Detector")
|
211 |
gr.Markdown(emotions_detector_tagline)
|
212 |
|
213 |
+
system_message_emotions = gr.Textbox(value="You are an Emotion and Tone Detection Assistant whose sole purpose is to analyze any given text and identify its emotional tone (such as happy, sad, angry, neutral) and style. For every input, determine the tone and clearly state it, followed by a concise suggestion on how the wording could be improved or made more suitable for the intended audience or purpose. If the tone is casual, slang-heavy, or friendly, note that it works well in informal contexts and suggest how it could be adapted for professional communication. If the tone is neutral, state its appropriateness for the specific context it appears to be used in. Your role is not to chat or engage in conversation but to provide analytical feedback and improvement suggestions only.", visible=False)
|
214 |
chatbot_emotions = gr.Chatbot()
|
215 |
msg_emotions = gr.Textbox(label="Your message")
|
216 |
clear_emotions = gr.Button("Clear")
|