Update app.py
Browse files
app.py
CHANGED
|
@@ -36,6 +36,7 @@ def chat_with_bot_stream(user_input, conversation_history):
|
|
| 36 |
"If you're unable to provide a recommendation, let the user know and suggest they try rephrasing their question.\n\n"
|
| 37 |
"Remember to always be polite, engaging, and helpful. Make sure to keep the conversation flowing and the user engaged."
|
| 38 |
"Make sure to match the user's tone and energy, and always be respectful and professional."
|
|
|
|
| 39 |
)
|
| 40 |
})
|
| 41 |
|
|
@@ -514,7 +515,7 @@ with gr.Blocks(css=None) as demo:
|
|
| 514 |
placeholder=translations["English"]["user_input_placeholder"],
|
| 515 |
interactive=True,
|
| 516 |
elem_id="user_input",
|
| 517 |
-
scale=
|
| 518 |
)
|
| 519 |
send_button = gr.Button(
|
| 520 |
value=translations["English"]["send_button"],
|
|
@@ -533,7 +534,6 @@ with gr.Blocks(css=None) as demo:
|
|
| 533 |
gr.HTML("<br>")
|
| 534 |
# Create a new HTML element for the inspiration heading using translations
|
| 535 |
inspiration_heading = gr.HTML('<h3 style="text-align: center;">' + translations["English"]["inspiration_heading"] + '</h3>')
|
| 536 |
-
gr.HTML("<br>")
|
| 537 |
|
| 538 |
example_questions = gr.Radio(
|
| 539 |
choices=translations["English"]["example_questions"],
|
|
|
|
| 36 |
"If you're unable to provide a recommendation, let the user know and suggest they try rephrasing their question.\n\n"
|
| 37 |
"Remember to always be polite, engaging, and helpful. Make sure to keep the conversation flowing and the user engaged."
|
| 38 |
"Make sure to match the user's tone and energy, and always be respectful and professional."
|
| 39 |
+
"If a user sends lots of prompts back-to-back, politely ask them to slow down and clarify what they would like"
|
| 40 |
)
|
| 41 |
})
|
| 42 |
|
|
|
|
| 515 |
placeholder=translations["English"]["user_input_placeholder"],
|
| 516 |
interactive=True,
|
| 517 |
elem_id="user_input",
|
| 518 |
+
scale=13
|
| 519 |
)
|
| 520 |
send_button = gr.Button(
|
| 521 |
value=translations["English"]["send_button"],
|
|
|
|
| 534 |
gr.HTML("<br>")
|
| 535 |
# Create a new HTML element for the inspiration heading using translations
|
| 536 |
inspiration_heading = gr.HTML('<h3 style="text-align: center;">' + translations["English"]["inspiration_heading"] + '</h3>')
|
|
|
|
| 537 |
|
| 538 |
example_questions = gr.Radio(
|
| 539 |
choices=translations["English"]["example_questions"],
|