Spaces:
Sleeping
Sleeping
Vishnu-add
commited on
Commit
•
534f681
1
Parent(s):
da25901
Changed key for sources
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ def display_conversation(history):
|
|
81 |
for source in history["generated"][i][1]['source_documents']:
|
82 |
# st.write(source.metadata['source'])
|
83 |
sources_list.append(source.metadata['source'])
|
84 |
-
message(str(set(sources_list)) , key=str(i))
|
85 |
|
86 |
def main():
|
87 |
# Search with pdf code
|
|
|
81 |
for source in history["generated"][i][1]['source_documents']:
|
82 |
# st.write(source.metadata['source'])
|
83 |
sources_list.append(source.metadata['source'])
|
84 |
+
message(str(set(sources_list)) , key="source_"+str(i))
|
85 |
|
86 |
def main():
|
87 |
# Search with pdf code
|