Spaces:
Runtime error
Runtime error
minor fix
Browse files
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}'")
|