Spaces:
Sleeping
Sleeping
Update pages/1_Chatbot_FR.py
Browse files- pages/1_Chatbot_FR.py +5 -4
pages/1_Chatbot_FR.py
CHANGED
@@ -376,10 +376,11 @@ def main():
|
|
376 |
if context_fr_list:
|
377 |
with st.spinner("Génération de la réponse..."):
|
378 |
# Run the LLM chain to generate a candidate answer.
|
379 |
-
response_fr = llm_chain_fr.run({
|
380 |
-
|
381 |
-
|
382 |
-
})
|
|
|
383 |
# Remove any prompt markers.
|
384 |
response_fr = response_fr.split("[RÉPONSE]")[-1].strip()
|
385 |
|
|
|
376 |
if context_fr_list:
|
377 |
with st.spinner("Génération de la réponse..."):
|
378 |
# Run the LLM chain to generate a candidate answer.
|
379 |
+
# response_fr = llm_chain_fr.run({
|
380 |
+
# "context": "\n".join(context_fr_list),
|
381 |
+
# "query": user_query_fr + "?"
|
382 |
+
# })
|
383 |
+
response_fr = llm_chain_fr.run({"context": "\n".join(context_fr_list), "query": user_query_fr + "?"})
|
384 |
# Remove any prompt markers.
|
385 |
response_fr = response_fr.split("[RÉPONSE]")[-1].strip()
|
386 |
|