Spaces:
Running
Running
Commit ·
2cca013
1
Parent(s): 72d0893
Update chatbot_tab.py
Browse files- tabs/chatbot_tab.py +4 -1
tabs/chatbot_tab.py
CHANGED
|
@@ -499,13 +499,16 @@ def run():
|
|
| 499 |
if to_init and not initialized:
|
| 500 |
init_run()
|
| 501 |
st.write("**thread_id:** "+thread_id)
|
|
|
|
|
|
|
|
|
|
| 502 |
for i in range(8, len(question)):
|
| 503 |
st.write("")
|
| 504 |
|
| 505 |
q = st.text_input(label=".", value=tr(
|
| 506 |
question[i]), label_visibility="collapsed")
|
| 507 |
if (q != ""):
|
| 508 |
-
input_messages = [HumanMessage(q)]
|
| 509 |
output = app.invoke(
|
| 510 |
{"messages": input_messages, "language": language},
|
| 511 |
config,
|
|
|
|
| 499 |
if to_init and not initialized:
|
| 500 |
init_run()
|
| 501 |
st.write("**thread_id:** "+thread_id)
|
| 502 |
+
eval_instruction = tr(
|
| 503 |
+
"La simulation est terminée. Sors de ton rôle de prospect et agis désormais comme un coach commercial qui évalue objectivement l'échange précédent. Réponds précisément à cette question : "
|
| 504 |
+
)
|
| 505 |
for i in range(8, len(question)):
|
| 506 |
st.write("")
|
| 507 |
|
| 508 |
q = st.text_input(label=".", value=tr(
|
| 509 |
question[i]), label_visibility="collapsed")
|
| 510 |
if (q != ""):
|
| 511 |
+
input_messages = [HumanMessage(eval_instruction + q)]
|
| 512 |
output = app.invoke(
|
| 513 |
{"messages": input_messages, "language": language},
|
| 514 |
config,
|