Spaces:
Runtime error
Runtime error
AlbertoFH98
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -176,8 +176,9 @@ RESPUESTA: """
|
|
176 |
# ---------------------------------------------------------------------
|
177 |
if st.button('Info.'):
|
178 |
search = DuckDuckGoSearchRun()
|
179 |
-
|
180 |
-
|
|
|
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])
|