segoedu commited on
Commit
5b5172f
verified
1 Parent(s): dc80305

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -8
app.py CHANGED
@@ -36,13 +36,7 @@ qa = RetrievalQA.from_chain_type(
36
  )
37
 
38
  # Funci贸n para mostrar logs
39
- def mostrar_logs(logs,hints):
40
- # Crear un contenedor desplegable
41
- with st.expander("Chunks"):
42
- for hint in hints:
43
- st.write(hint.page_content)
44
- st.write("-" * 30)
45
-
46
  st.sidebar.header("Registro de preguntas")
47
  for entry in logs:
48
  st.sidebar.write(f"**Pregunta: {entry['Pregunta']}**")
@@ -66,4 +60,4 @@ if user_question:
66
  logs.append({"Pregunta": user_question, "Respuesta": respuesta})
67
 
68
  # Mostrar logs actualizados
69
- mostrar_logs(logs,docs)
 
36
  )
37
 
38
  # Funci贸n para mostrar logs
39
+ def mostrar_logs(logs):
 
 
 
 
 
 
40
  st.sidebar.header("Registro de preguntas")
41
  for entry in logs:
42
  st.sidebar.write(f"**Pregunta: {entry['Pregunta']}**")
 
60
  logs.append({"Pregunta": user_question, "Respuesta": respuesta})
61
 
62
  # Mostrar logs actualizados
63
+ mostrar_logs(logs)