Spaces:
Runtime error
Runtime error
AlbertoFH98
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -199,7 +199,7 @@ RESPUESTA: """
|
|
199 |
with st.chat_message("assistant"):
|
200 |
if 'GPT' not in genre:
|
201 |
if prompt.lower() == 'resume':
|
202 |
-
llm_response = utils.summarise_doc(
|
203 |
st.markdown(llm_response)
|
204 |
else:
|
205 |
llm_response = qa_chain(prompt)['result']
|
@@ -222,10 +222,10 @@ RESPUESTA: """
|
|
222 |
st_player(youtube_video_url.replace("?enablejsapi=1", "") + f'?start={start_time_seconds}&end={end_time_seconds}')
|
223 |
else:
|
224 |
if prompt.lower() == 'resume':
|
225 |
-
llm_response = utils.summarise_doc(
|
226 |
st.markdown(llm_response)
|
227 |
else:
|
228 |
-
llm_response = utils.get_gpt_response(
|
229 |
llm_response = utils.process_llm_response(llm_response)
|
230 |
st.markdown(llm_response)
|
231 |
|
|
|
199 |
with st.chat_message("assistant"):
|
200 |
if 'GPT' not in genre:
|
201 |
if prompt.lower() == 'resume':
|
202 |
+
llm_response = utils.summarise_doc(video_option_joined_path, model_name='llama', model=MODEL)
|
203 |
st.markdown(llm_response)
|
204 |
else:
|
205 |
llm_response = qa_chain(prompt)['result']
|
|
|
222 |
st_player(youtube_video_url.replace("?enablejsapi=1", "") + f'?start={start_time_seconds}&end={end_time_seconds}')
|
223 |
else:
|
224 |
if prompt.lower() == 'resume':
|
225 |
+
llm_response = utils.summarise_doc(video_option_joined_path, model_name='gpt')
|
226 |
st.markdown(llm_response)
|
227 |
else:
|
228 |
+
llm_response = utils.get_gpt_response(video_option_joined_path, prompt, logger)
|
229 |
llm_response = utils.process_llm_response(llm_response)
|
230 |
st.markdown(llm_response)
|
231 |
|