Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -174,6 +174,12 @@ RESPUESTA: """
|
|
174 |
qa_chain = utils.create_llm_chain(MODEL, retriever, chain_type_kwargs, logger, video_option_joined_path)
|
175 |
|
176 |
# ---------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
_, container, _ = st.columns([SIDE, WIDTH, SIDE])
|
178 |
with container:
|
179 |
st_player(utils.typewrite(youtube_video_url))
|
@@ -185,8 +191,6 @@ RESPUESTA: """
|
|
185 |
with st.chat_message(message["role"]):
|
186 |
st.markdown(message["content"])
|
187 |
|
188 |
-
search = DuckDuckGoSearchRun()
|
189 |
-
st.markdown(search.run("¿Quién es Roberto Vaquero?"))
|
190 |
if prompt := st.chat_input("¡Pregunta lo que quieras!"):
|
191 |
with st.chat_message("user"):
|
192 |
st.markdown(prompt)
|
|
|
174 |
qa_chain = utils.create_llm_chain(MODEL, retriever, chain_type_kwargs, logger, video_option_joined_path)
|
175 |
|
176 |
# ---------------------------------------------------------------------
|
177 |
+
if st.button('Info.'):
|
178 |
+
search = DuckDuckGoSearchRun()
|
179 |
+
info = search.run("¿Quién es Roberto Vaquero?")
|
180 |
+
character_info = utils.get_character_info_gpt(info, character="Roberto Vaquero")
|
181 |
+
st.info(character_info)
|
182 |
+
|
183 |
_, container, _ = st.columns([SIDE, WIDTH, SIDE])
|
184 |
with container:
|
185 |
st_player(utils.typewrite(youtube_video_url))
|
|
|
191 |
with st.chat_message(message["role"]):
|
192 |
st.markdown(message["content"])
|
193 |
|
|
|
|
|
194 |
if prompt := st.chat_input("¡Pregunta lo que quieras!"):
|
195 |
with st.chat_message("user"):
|
196 |
st.markdown(prompt)
|