JBHF commited on
Commit
d6d51dc
1 Parent(s): b9aadb6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -350,6 +350,7 @@ if prompt := st.chat_input():
350
  # st.info("Please add your OpenAI API key to continue.")
351
  # st.stop()
352
 
 
353
  prompt = prompt + language_prompt
354
  st.write('prompt + language_prompt:', prompt)
355
 
@@ -373,7 +374,9 @@ if prompt := st.chat_input():
373
 
374
  #client = OpenAI(api_key=openai_api_key)
375
  st.session_state.messages.append({"role": "user", "content": prompt})
376
- st.chat_message("user").write(prompt)
 
 
377
  # response = client.chat.completions.create(model="gpt-3.5-turbo", messages=st.session_state.messages)
378
  # msg = response.choices[0].message.content
379
  msg = response["answer"]
 
350
  # st.info("Please add your OpenAI API key to continue.")
351
  # st.stop()
352
 
353
+ original_prompt = prompt
354
  prompt = prompt + language_prompt
355
  st.write('prompt + language_prompt:', prompt)
356
 
 
374
 
375
  #client = OpenAI(api_key=openai_api_key)
376
  st.session_state.messages.append({"role": "user", "content": prompt})
377
+ # st.chat_message("user").write(prompt)
378
+ # original_prompt
379
+ st.chat_message("user").write(original_prompt)
380
  # response = client.chat.completions.create(model="gpt-3.5-turbo", messages=st.session_state.messages)
381
  # msg = response.choices[0].message.content
382
  msg = response["answer"]