timfe commited on
Commit
25a1d6b
·
1 Parent(s): d1ecef9
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -196,7 +196,7 @@ if st.session_state.clicked:
196
  st.write(f"[{i+1}] ", str(citation.page_content))
197
  st.write(str(citation.metadata['source']))
198
  section = ""
199
- if len(list(citation.metadata.values())) > 1 & data_source=='Blog articles':
200
  for chapter in list(citation.metadata.values())[:-1]:
201
  section += f"{chapter} "
202
  st.write(f"Abschnitt: '{section}'")
@@ -224,7 +224,7 @@ if prompt := st.chat_input():
224
  st.write(f"[{i+1}] ", str(citation.page_content))
225
  st.write(str(citation.metadata['source']))
226
  section = ""
227
- if len(list(citation.metadata.values())) > 1 & data_source=='Blog articles':
228
  for chapter in list(citation.metadata.values())[:-1]:
229
  section += f"{chapter} "
230
  st.write(f"Abschnitt: '{section}'")
 
196
  st.write(f"[{i+1}] ", str(citation.page_content))
197
  st.write(str(citation.metadata['source']))
198
  section = ""
199
+ if (len(list(citation.metadata.values())) > 1) & (data_source=='Blog articles'):
200
  for chapter in list(citation.metadata.values())[:-1]:
201
  section += f"{chapter} "
202
  st.write(f"Abschnitt: '{section}'")
 
224
  st.write(f"[{i+1}] ", str(citation.page_content))
225
  st.write(str(citation.metadata['source']))
226
  section = ""
227
+ if (len(list(citation.metadata.values())) > 1) & (data_source=='Blog articles'):
228
  for chapter in list(citation.metadata.values())[:-1]:
229
  section += f"{chapter} "
230
  st.write(f"Abschnitt: '{section}'")