AlbertoFH98 commited on
Commit
17745cd
·
1 Parent(s): 0c464a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -190,11 +190,11 @@ RESPUESTA: """
190
  st.session_state.messages.append({"role": "user", "content": prompt})
191
  with st.chat_message("assistant"):
192
  if 'GPT' not in genre:
193
- llm_response = qa_chain(prompt)
194
  else:
195
  llm_response = utils.get_gpt_response(TRANSCRIPTION_PATH, prompt)
196
 
197
- llm_response = utils.process_llm_response(llm_response, nlp)
198
  st.markdown(llm_response)
199
 
200
  start_time_str_list = []; start_time_seconds_list = []; end_time_seconds_list = []
 
190
  st.session_state.messages.append({"role": "user", "content": prompt})
191
  with st.chat_message("assistant"):
192
  if 'GPT' not in genre:
193
+ llm_response = qa_chain(prompt)['result']
194
  else:
195
  llm_response = utils.get_gpt_response(TRANSCRIPTION_PATH, prompt)
196
 
197
+ llm_response = utils.process_llm_response(llm_response)
198
  st.markdown(llm_response)
199
 
200
  start_time_str_list = []; start_time_seconds_list = []; end_time_seconds_list = []