Spaces:
Runtime error
Runtime error
AlbertoFH98
commited on
Commit
•
b747bac
1
Parent(s):
e73a11f
Update app.py
Browse files
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,
|
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,
|
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)
|