Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -178,7 +178,7 @@ if prompt := st.chat_input("砖讗诇 砖讗诇讛 讘注谞讬讬谞讬 讞住讬讚讜转...", dis
|
|
178 |
msg_placeholder.markdown(final, unsafe_allow_html=True)
|
179 |
|
180 |
# Identify cited IDs
|
181 |
-
cited_ids = set(re.findall(r'\
|
182 |
if cited_ids:
|
183 |
enumerated_docs = list(enumerate(docs, start=1))
|
184 |
docs_to_show = [(idx, doc) for idx, doc in enumerated_docs if str(idx) in cited_ids]
|
|
|
178 |
msg_placeholder.markdown(final, unsafe_allow_html=True)
|
179 |
|
180 |
# Identify cited IDs
|
181 |
+
cited_ids = set(re.findall(r'诪拽讜专[\s\u00A0\u2000-\u200F\u2028-\u202F\u205F\u3000]*([0-9]+)', raw))
|
182 |
if cited_ids:
|
183 |
enumerated_docs = list(enumerate(docs, start=1))
|
184 |
docs_to_show = [(idx, doc) for idx, doc in enumerated_docs if str(idx) in cited_ids]
|