JBHF commited on
Commit
3695ec1
·
verified ·
1 Parent(s): 1841fe3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -342,12 +342,16 @@ option = st.selectbox(
342
 
343
  st.write('You selected:', option)
344
 
 
 
345
 
346
  if prompt := st.chat_input():
347
  #if not openai_api_key:
348
  # st.info("Please add your OpenAI API key to continue.")
349
  # st.stop()
350
 
 
 
351
  # Then pass the prompt to the LLM
352
  start = time.process_time()
353
  response = retrieval_chain.invoke({"input": prompt})
 
342
 
343
  st.write('You selected:', option)
344
 
345
+ language_prompt = "Antwoordt uitsluitend en alleen in de taal: " + option + "en beslist niet in een andere taal!"
346
+
347
 
348
  if prompt := st.chat_input():
349
  #if not openai_api_key:
350
  # st.info("Please add your OpenAI API key to continue.")
351
  # st.stop()
352
 
353
+ prompt = prompt + language_prompt
354
+
355
  # Then pass the prompt to the LLM
356
  start = time.process_time()
357
  response = retrieval_chain.invoke({"input": prompt})