AlbertoFH98 commited on
Commit
a8da022
·
verified ·
1 Parent(s): 9a57db2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -176,8 +176,9 @@ RESPUESTA: """
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])
 
176
  # ---------------------------------------------------------------------
177
  if st.button('Info.'):
178
  search = DuckDuckGoSearchRun()
179
+ character_name = video_option.replace("'", "").title().split("Entrevista A ")[-1]
180
+ info = search.run("¿Quien es {}?".format(character_name))
181
+ character_info = utils.get_character_info_gpt(info, character=character_name)
182
  st.info(character_info)
183
 
184
  _, container, _ = st.columns([SIDE, WIDTH, SIDE])