AlbertoFH98 commited on
Commit
b747bac
1 Parent(s): e73a11f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -191,7 +191,7 @@ RESPUESTA: """
191
  with st.chat_message("assistant"):
192
  if 'GPT' not in genre:
193
  if prompt.lower() == 'resume':
194
- llm_response = utils.summarise_doc(TRANSCRIPTION_PATH, model='llama')
195
  st.markdown(llm_response)
196
  else:
197
  llm_response = qa_chain(prompt)['result']
@@ -214,7 +214,7 @@ RESPUESTA: """
214
  st_player(youtube_video_url.replace("?enablejsapi=1", "") + f'?start={start_time_seconds}&end={end_time_seconds}')
215
  else:
216
  if prompt.lower() == 'resume':
217
- llm_response = utils.summarise_doc(TRANSCRIPTION_PATH, model='gpt')
218
  st.markdown(llm_response)
219
  else:
220
  llm_response = utils.get_gpt_response(TRANSCRIPTION_PATH, prompt, logger)
 
191
  with st.chat_message("assistant"):
192
  if 'GPT' not in genre:
193
  if prompt.lower() == 'resume':
194
+ llm_response = utils.summarise_doc(TRANSCRIPTION_PATH, model_name='llama', model=MODEL)
195
  st.markdown(llm_response)
196
  else:
197
  llm_response = qa_chain(prompt)['result']
 
214
  st_player(youtube_video_url.replace("?enablejsapi=1", "") + f'?start={start_time_seconds}&end={end_time_seconds}')
215
  else:
216
  if prompt.lower() == 'resume':
217
+ llm_response = utils.summarise_doc(TRANSCRIPTION_PATH, model_name='gpt')
218
  st.markdown(llm_response)
219
  else:
220
  llm_response = utils.get_gpt_response(TRANSCRIPTION_PATH, prompt, logger)